:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #2d2d35;
  --muted: #6f7280;
  --primary: #6d4bff;
  --primary-2: #8c52ff;
  --shadow: 0 18px 50px rgba(62, 46, 120, 0.16);
}

* {
  box-sizing: border-box;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms ease, transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

html {
  scrollbar-color: #a47bff #eef0fa;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

/* Modern scrollbar styling */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f5f6fc 0%, #eef0fa 100%);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8c52ff 0%, #6d4bff 100%);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7a43f5 0%, #5a38d8 100%);
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(109, 75, 255, 0.18), transparent 60%);
  z-index: -1;
}

body::after {
  right: -180px;
  bottom: -140px;
  background: radial-gradient(circle at 70% 70%, rgba(140, 82, 255, 0.15), transparent 60%);
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('https://cdn.svgator.com/images/2022/06/use-svg-as-background-image-particle-strokes.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  z-index: -2;
  pointer-events: none;
  animation: drift-bg 14s ease-in-out infinite alternate;
}

.page-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

@keyframes drift-bg {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }

  100% {
    transform: translateY(-18px) translateX(10px) scale(1.04);
  }
}

.top-nav {
  display: none;
}

.top-nav::before {
  display: none;
}

.nav-content {
  position: relative;
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text);
  pointer-events: auto;
}

.nav-content nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

main {
  margin-top: 0;
}

section {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 80px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px 56px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #f6f7fb 0%, #f6f7fb 40%, transparent 40%);
  z-index: -1;
}

.social-rail {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-130%, -50%);
  display: grid;
  gap: 14px;
  text-transform: lowercase;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  justify-items: center;
  writing-mode: vertical-rl;
  z-index: 2;
}

.social-link {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}

.social-link:hover {
  color: var(--primary);
}

.rail-line {
  width: 1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, #c5c7d3, transparent);
}

.rail-label {
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-links,
.page-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.hero-links a,
.page-links a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease;
}

.hero-links a:hover,
.page-links a:hover {
  color: var(--primary);
  background: rgba(109, 75, 255, 0.08);
}

.hero-links {
  grid-column: 1 / -1;
  margin: -8px 0 4px;
}

.hero-copy h1 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: clamp(42px, 5vw, 54px);
  margin: 6px 0;
}

.hero-copy h1.type-loop {
  min-height: 1.2em;
}

.hero-copy h1.type-loop::after {
  content: '|';
  margin-left: 4px;
  color: var(--primary);
  animation: caret-blink 900ms steps(1, end) infinite;
}

@keyframes caret-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0;
  font-weight: 700;
}

.hero-copy .role {
  margin: 6px 0 14px;
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

.hero-copy .lede {
  max-width: 520px;
  color: #4b4e5c;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  transform: translateY(-60px);
}

.hero-blob {
  width: min(560px, 92vw);
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(150deg, var(--primary), var(--primary-2));
  border-radius: 52% 48% 42% 58% / 60% 52% 48% 40%;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(76, 62, 155, 0.35);
}

.hero-blob img {
  width: 98%;
  height: 98%;
  object-fit: cover;
  border-radius: 40% 60% 50% 50%;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.about h2 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 34px;
  margin: 8px 0 12px;
}

.about p {
  color: #4b4e5c;
}

.photo-frame {
  position: relative;
  width: min(520px, 90vw);
  aspect-ratio: 4 / 5;
  background: #e7e7ff;
  border-radius: 30% 70% 60% 40% / 60% 40% 60% 40%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialties {
  text-align: center;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  max-width: 320px;
}

.card h4 {
  margin: 8px 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #4b4e5c;
}

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(109, 75, 255, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.portfolio {
  text-align: center;
}

.portfolio-grid {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.folio-card {
  display: block;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(62, 46, 120, 0.12);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
  color: inherit;
  flex: 1 1 240px;
  max-width: 340px;
}

.folio-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.folio-card img.is-swapping {
  opacity: 0.2;
}

.folio-card span {
  display: block;
  padding: 12px 14px 16px;
  font-weight: 600;
  color: #3a3b45;
}

.folio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(62, 46, 120, 0.2);
}

.testimonials {
  text-align: center;
}

.testimonial-card {
  background: var(--card);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
  width: min(760px, 92vw);
  margin: 24px auto 0;
}

.avatar-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e5e6ef;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #4b4e5c;
}

.avatar.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.testimonial-card h4 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.testimonial-card .role {
  margin: 0 0 10px;
  color: var(--muted);
}

.testimonial-card .quote {
  margin: 0;
  color: #3c3e4a;
}

.controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6d7e0;
}

.dot.active {
  background: var(--primary);
}

.cta {
  width: 100%;
}

.experience-panel {
  width: min(900px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.experience-panel h3 {
  margin: 6px 0 18px;
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(109, 75, 255, 0.12);
  box-shadow: 0 10px 26px rgba(62, 46, 120, 0.12);
  text-align: left;
}

.experience-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.experience-card p {
  margin: 0;
  color: #4b4e5c;
}

.experience-card span {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.tools-panel {
  width: min(900px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.tools-panel h3 {
  margin: 6px 0 18px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(109, 75, 255, 0.16);
  color: #3a3b45;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(62, 46, 120, 0.12);
}

.tool-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.tool-chip:hover {
  border-color: rgba(109, 75, 255, 0.3);
  box-shadow: 0 12px 26px rgba(62, 46, 120, 0.18);
}

.cta-social {
  width: min(900px, 92vw);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-social .section-kicker {
  margin: 0;
  color: var(--muted);
}

.social-footer {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 32px 0 48px;
  text-align: center;
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
}

.social-list a {
  color: var(--primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(109, 75, 255, 0.08);
  transition: background 160ms ease, color 160ms ease;
}

.social-list a:hover {
  background: rgba(109, 75, 255, 0.14);
  color: var(--primary-2);
}

.cta-inner {
  width: min(900px, 92vw);
  margin: 0 auto;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 24px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(76, 62, 155, 0.35);
}

.cta-inner .section-kicker {
  color: #fff;
}

.cta-inner .lede {
  margin: 8px 0 0;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.cta-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-main h3 {
  margin: 6px 0 0;
  color: #fff;
}

.social-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-inline a {
  color: var(--primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(109, 75, 255, 0.18);
  background: rgba(109, 75, 255, 0.08);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background 160ms ease, border-color 160ms ease;
}

.social-inline a:hover {
  background: rgba(109, 75, 255, 0.12);
  border-color: rgba(109, 75, 255, 0.26);
}

.cta-inner .social-inline a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.cta-inner .social-inline a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(76, 62, 155, 0.35);
}

.btn.ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(109, 75, 255, 0.2);
}

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

.btn.primary:hover {
  box-shadow: 0 16px 38px rgba(76, 62, 155, 0.45);
}

.btn.ghost:hover {
  box-shadow: 0 12px 30px rgba(76, 62, 155, 0.18);
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.cta-row.center {
  justify-content: center;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(76, 62, 155, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  z-index: 80;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 16px 38px rgba(76, 62, 155, 0.45);
}

.gallery-hero {
  padding: 8px 12px 10px;
  text-align: center;
  width: min(1100px, 92vw);
  margin: 0 auto 10px;
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 46px);
}

.gallery-hero p {
  margin: 12px auto 0;
  max-width: 720px;
  color: #4b4e5c;
}

.gallery-grid {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
}

.gallery-section {
  width: min(1100px, 92vw);
  margin: 0 auto 12px;
  padding: 8px 0 14px;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.gallery-section h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  color: #2d2d35;
}

.gallery-item {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(62, 46, 120, 0.12);
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
  display: block;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
}

.gallery-item span {
  display: none;
}

.gallery-item::after {
  content: 'Klik untuk melihat full';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-align: center;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 24, 0.75);
  backdrop-filter: blur(2px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  z-index: 1;
  background: #0c0e18;
  display: inline-block;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0c0e18;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* Web detail specific: show full-size previews */
.web-gallery .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.web-gallery .gallery-item {
  cursor: pointer;
}

.web-gallery .gallery-item img,
.web-gallery .gallery-item video {
  height: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #0c0e18;
}

.flutter-gallery .gallery-grid {
  grid-template-columns: minmax(280px, 760px);
  justify-content: center;
}

.flutter-gallery .gallery-item {
  cursor: pointer;
}

.flutter-gallery .gallery-item::after {
  content: 'Klik untuk buka app';
}

.flutter-gallery .gallery-item img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: #ede2d0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  color: #2d2d35;
}

h3 {
  margin: 6px 0 4px;
  font-size: 26px;
}

@media (max-width: 1024px) {
  .top-nav::before {
    width: 100%;
    height: 120px;
    clip-path: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .nav-content {
    width: 100%;
    padding: 10px 16px;
    justify-content: center;
    gap: 18px;
  }

  .hero,
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual,
  .hero-copy {
    justify-content: center;
  }

  .hero {
    padding: 44px 14px 44px;
  }

  .hero-visual {
    transform: translateY(-20px);
  }

  .hero-copy .lede,
  .about p {
    margin: 0 auto;
  }

  .social-rail {
    display: none;
  }

  .about-copy {
    order: 2;
  }

  .about-visual {
    order: 1;
    justify-self: center;
  }

  .cta-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 4px;
  }

  .cta-inner {
    padding: 26px 28px;
    gap: 14px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .top-nav nav {
    gap: 14px;
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }

  .nav-content {
    padding: 12px 16px;
  }

  *::-webkit-scrollbar {
    width: 8px;
  }

  .hero {
    padding: 36px 12px 38px;
  }

  .hero-blob {
    width: 100%;
  }

  .photo-frame {
    width: 100%;
  }

  .cta-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-inner {
    padding: 22px 24px;
    gap: 12px;
  }

  .cta-main {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .cta-main .btn {
    margin-left: auto;
  }

  .cta-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 2px;
  }

  .social-footer {
    padding: 24px 0 36px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }

  .social-rail {
    display: none;
  }
}