/* ================= VARS & THEME ================= */
:root {
  --bg: #0d0d0d;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --card: #1c1c1c;
  --border: #2a2a2a;
  --border-strong: #333;
  --text: #fff;
  --text-muted: #cfcfcf;
  --text-dim: #a7a7a7;
  --accent: #ff3b3b;
  --accent-2: #ff6b6b;
  --accent-hover: #cc2e2e;
  --accent-soft: rgba(255, 59, 59, .14);
  --accent-glow: rgba(255, 59, 59, .4);
  --nav-bg: rgba(13, 13, 13, .78);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, .28);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --container: 1200px;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --display: 'Outfit', var(--sans);
  --mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg: #f8f7f6;
  --surface: #ffffff;
  --surface-2: #fff;
  --card: #fff;
  --border: #ececec;
  --border-strong: #e8e8e8;
  --text: #171717;
  --text-muted: #52525b;
  --text-dim: #8a8a94;
  --accent-soft: rgba(255, 59, 59, .08);
  --nav-bg: rgba(255, 255, 255, .78);
  --shadow: 0 24px 50px rgba(0, 0, 0, .08);
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  overscroll-behavior-y: none;
  scroll-padding-top: 72px
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background .35s, color .35s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 18% 6%, rgba(255, 59, 59, .16), transparent 62%),
    radial-gradient(700px 500px at 92% 18%, rgba(255, 120, 120, .10), transparent 60%),
    radial-gradient(900px 700px at 50% 92%, rgba(255, 59, 59, .07), transparent 68%);
  opacity: 1;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 18% 6%, rgba(255, 59, 59, .10), transparent 62%),
    radial-gradient(700px 500px at 92% 18%, rgba(255, 59, 59, .06), transparent 60%);
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

a {
  color: inherit
}

button {
  font: inherit
}

.container {
  width: min(var(--container), calc(100% - clamp(20px, 5vw, 48px)));
  margin-inline: auto
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700
}

.skip-link:focus {
  left: 12px
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.loader-inner {
  text-align: center;
  min-width: 260px
}

.loader-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 18px 40px rgba(255, 59, 59, .35)
}

.loader-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em
}

.loader-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px auto 10px;
  width: 220px
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  animation: loadSlide 1.1s ease-in-out infinite
}

.loader-sub {
  font-size: 12px;
  color: var(--text-dim)
}

@keyframes loadSlide {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(260%)
  }
}

/* ================= PROGRESS + GLOW + SPOTLIGHT ================= */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9998;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}

.cursor-glow {
  display: none !important
}

.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .55;
  mix-blend-mode: soft-light;
  background: radial-gradient(520px 520px at var(--sx, 50%) var(--sy, 30%), rgba(255, 59, 59, .18), transparent 62%);
  transition: opacity .3s;
}

[data-theme="light"] .spotlight {
  opacity: .22
}

/* Fire Dragon SVG — desktop Windows only (DRAGON asli, screenshot) */
#dragonWrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: block;
  overflow: hidden
}

#dragonWrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 59, 59, .42)) drop-shadow(0 0 14px rgba(255, 59, 59, .22))
}

[data-theme="light"] #dragonWrap {
  opacity: 1
}

[data-theme="light"] #dragonWrap svg {
  filter: drop-shadow(0 0 6px rgba(204, 26, 26, .45)) drop-shadow(0 0 12px rgba(204, 26, 26, .22))
}

@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  #dragonWrap svg {
    animation: dragonAura 3.2s ease-in-out infinite
  }
}

@keyframes dragonAura {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 59, 59, .42)) drop-shadow(0 0 14px rgba(255, 59, 59, .22))
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(255, 59, 59, .55)) drop-shadow(0 0 20px rgba(255, 59, 59, .30))
  }
}

/* Settings panel — daya tarik */
.settings-panel {
  position: fixed;
  top: calc(62px + env(safe-area-inset-top));
  right: 12px;
  width: min(340px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 1100;
  display: none;
  overflow: hidden
}

.settings-panel.open {
  display: block;
  animation: settingsIn .22s ease
}

@keyframes settingsIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.98)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.settings-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px
}

.settings-head button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: grid;
  place-items: center
}

.settings-body {
  padding: 12px 14px;
  display: grid;
  gap: 12px
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700
}

.settings-row span {
  display: flex;
  align-items: center;
  gap: 8px
}

.settings-row span i {
  color: var(--accent);
  width: 16px;
  text-align: center
}

.settings-row select {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600
}

.settings-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  max-width: 140px
}

.settings-note {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  background: var(--accent-soft);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, .12)
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0
}

.switch span {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: .22s
}

.switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .22s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2)
}

.switch input:checked+span {
  background: var(--accent)
}

.switch input:checked+span::after {
  transform: translateX(20px)
}

#fireballCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 3;
  display: block
}

@media (hover:none),
(pointer:coarse),
(max-width:980px) {
  #dragonWrap {
    display: none !important
  }

  #fireballCanvas {
    display: none !important
  }
}

@media (prefers-reduced-motion:reduce) {
  #dragonWrap {
    display: none !important
  }

  #fireballCanvas {
    display: none !important
  }
}

@media (hover:none) {
  .cursor-glow {
    display: none
  }

  .spotlight {
    display: none
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  #progressBar {
    animation: none
  }

  .loader-bar span {
    animation: none
  }

  #dragonWrap svg {
    animation: none !important
  }

  .marquee-track {
    animation: none !important
  }

  .hidden {
    transition: none !important
  }
}

/* ================= NAV ================= */
nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  padding-top: env(safe-area-inset-top);
  overflow: visible;
  contain: none !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto;
  isolation: auto;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

nav.nav-scroll {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .18)
}

.nav-inner {
  overflow: visible
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo span {
  color: var(--text);
  opacity: .32
}

.logo-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 999px;
}

.logo {
  flex-shrink: 0
}

.menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap
}

.menu li {
  flex-shrink: 0
}

.menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: .22s;
  white-space: nowrap;
}

.menu a:hover,
.menu a.active {
  color: var(--accent);
  background: var(--accent-soft)
}

.menu-cta-mobile {
  display: none
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto
}

.nav-hire {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: .22s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .28s;
  display: block
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0)
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1001;
  backdrop-filter: none;
  -webkit-backdrop-filter: none
}

.nav-overlay.show {
  display: block
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 28px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.hero-copy {
  min-width: 0
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 100%;
}

.eyebrow strong {
  color: var(--text);
  font-weight: 700
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .15);
  display: inline-block
}

.eyebrow-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px
}

.eyebrow-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulseDot 1.6s infinite
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  font-size: clamp(30px, 5vw, 56px);
  margin: 14px 0 12px;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--accent)
}

.hero-typing {
  min-height: 28px;
  color: var(--text-muted);
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.7;
  max-width: 48ch;
  text-wrap: pretty;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.chip i {
  color: var(--accent);
  font-size: 12px
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px
}

.hero-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: .22s;
}

.hero-social a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent)
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-meta i {
  color: var(--accent)
}

.hero-visual {
  min-width: 0;
  display: grid;
  place-items: center
}

.portrait-stack {
  position: relative;
  width: min(100%, 420px);
  padding: 18px 18px 22px
}

.portrait-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 14px 14px 0;
}

.portrait-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(500px 360px at 50% 20%, rgba(255, 59, 59, .22), transparent 66%);
  pointer-events: none;
}

.profile {
  width: 100%;
  height: clamp(260px, 36vw, 380px);
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: #1a1a1a;
}

.portrait-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 14px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
}

.bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block
}

.bar-dot:nth-child(1) {
  background: #ff5f57
}

.bar-dot:nth-child(2) {
  background: #ffbd2e
}

.bar-dot:nth-child(3) {
  background: #28c940
}

.bar-title {
  margin-left: 6px;
  opacity: .9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  font-size: 12.5px;
  line-height: 1.2;
  z-index: 2;
  max-width: 190px;
}

.float-card strong {
  display: block;
  font-size: 12.5px;
  color: var(--text)
}

.float-card span {
  color: var(--text-dim);
  font-size: 11.5px
}

.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0
}

.fc-icon.alt {
  background: #0ea5e9
}

.fc-1 {
  top: 6%;
  right: 0;
  transform: rotate(.6deg)
}

.fc-2 {
  bottom: 18%;
  left: -6px;
  transform: rotate(-.6deg)
}

.fc-3 {
  bottom: 2%;
  right: 6px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 12px
}

.fc-stars {
  color: #f59e0b;
  font-size: 11px;
  display: flex;
  gap: 2px
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 18px auto 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.scroll-indicator span {
  width: 22px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--border);
  position: relative;
  display: block;
}

.scroll-indicator span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1
  }

  100% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0
  }
}

/* ================= MARQUEE ================= */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  animation: marq 26s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

.marquee span {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.marquee i {
  color: var(--accent)
}

.marq-dot {
  color: var(--border-strong)
}

@keyframes marq {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ================= SECTIONS ================= */
section {
  padding: clamp(56px, 7vw, 88px) 0
}

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 4px
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 59, .14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  font-size: clamp(26px, 3.8vw, 38px);
  color: var(--text);
  text-wrap: balance;
}

.section-line {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin: 14px auto 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .22s;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 14px
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
  border-radius: 999px
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(255, 59, 59, .30)
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px)
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border)
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px)
}

.btn-ghost {
  background: var(--card);
  color: var(--text-muted);
  border-color: var(--border)
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px)
}

.btn-block {
  width: 100%
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  font-size: 13px
}

.link-arrow:hover {
  gap: 8px
}

/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 18px;
  align-items: start
}

.about-copy p,
#aboutTyping {
  color: var(--text-muted);
  font-size: clamp(14.5px, 1.7vw, 17px);
  line-height: 1.9;
  text-wrap: pretty;
}

#aboutTyping::after {
  content: "|";
  color: var(--accent);
  animation: blink .7s infinite;
  margin-left: 2px
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px
}

.about-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.about-highlights i {
  color: #22c55e
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.about-card-head i {
  color: var(--accent)
}

.facts {
  padding: 14px 16px;
  display: grid;
  gap: 12px
}

.facts>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border)
}

.facts dt {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em
}

.facts dd {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-align: right
}

.about-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted)
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .18);
  display: inline-block
}

/* ================= STATS ================= */
.stats-section {
  padding-top: 0
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: .22s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 59, .35);
  box-shadow: var(--shadow-soft)
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.stat-number {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em
}

.stat-label {
  font-weight: 800;
  font-size: 13px;
  margin-top: 2px
}

.stat-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px
}

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 28px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--accent-soft);
  border: 2px solid var(--bg);
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: .22s;
}

.timeline-card:hover {
  border-color: rgba(255, 59, 59, .32);
  transform: translateX(4px)
}

.timeline-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.2
}

.timeline-org {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.timeline-card ul {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75
}

.timeline-card li::marker {
  color: var(--accent)
}

/* ================= SKILL ================= */
.skill-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: .22s;
}

.skill-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(255, 59, 59, .28);
  box-shadow: var(--shadow-soft)
}

.skill-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 10px
}

.skill-fallback-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 10px;
  color: var(--accent);
  font-size: 32px
}

.skill-card h3 {
  font-size: 15px
}

.skill-card span {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600
}

.progress {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  margin: 12px 0 8px;
  overflow: hidden
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 1.1s cubic-bezier(.16, 1, .3, 1)
}

.skill-card small {
  color: var(--accent);
  font-weight: 800;
  font-size: 12.5px
}

.html {
  width: 90%
}

.css {
  width: 85%
}

.js {
  width: 75%
}

.php {
  width: 80%
}

.laravel {
  width: 80%
}

.flutter {
  width: 70%
}

.mysql {
  width: 80%
}

.github {
  width: 85%
}

.skill-note {
  margin-top: 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px
}

/* ================= PROJECT ================= */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
  min-height: 38px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: .22s;
  display: flex;
  flex-direction: column;
  font: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
}

.card:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: rgba(255, 59, 59, .30);
  box-shadow: var(--shadow)
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(255, 59, 59, .3)
}

.card img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  background: #1a1a1a
}

.card-image-placeholder {
  display: grid;
  width: 100%;
  height: 156px;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 32px
}

.card-content {
  padding: 14px 14px 10px;
  flex: 1
}

.card h3 {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  font-family: var(--display)
}

.card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 6px
}

.card small {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1.5
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent)
}

.card.hidden-filter {
  display: none
}

/* ================= CERTS ================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .22s
}

.cert-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(255, 59, 59, .28);
  box-shadow: var(--shadow-soft)
}

.cert-thumb {
  height: 138px;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: #fff;
  position: relative;
  overflow: hidden
}

.cert-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .22))
}

.cert-thumb i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28))
}

.cert-thumb img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cert-thumb-1 {
  background: linear-gradient(135deg, #ff3b3b, #ff8a8a)
}

.cert-thumb-2 {
  background: linear-gradient(135deg, #111827, #ff3b3b)
}

.cert-thumb-3 {
  background: linear-gradient(135deg, #0f2a44, #e94560)
}

.cert-body {
  padding: 14px 14px 16px
}

.cert-body h3 {
  font-size: 15px
}

.cert-body p {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 4px 0 10px
}

.cert-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  min-height: 36px;
}

.cert-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* ================= DONATION ================= */
.donation-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, .8fr);
  gap: 22px;
  align-items: start
}

.donation-copy {
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8
}

.donation-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft)
}

.donation-field {
  display: grid;
  gap: 7px;
  min-width: 0
}

.donation-field label {
  font-size: 12.5px;
  font-weight: 800
}

.donation-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px
}

.donation-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft)
}

.donation-submit {
  width: 100%;
  justify-content: center;
  gap: 8px;
  border: 0
}

.donation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px
}

.donation-resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 59, 59, .3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text)
}

.donation-resume-banner[hidden] {
  display: none
}

.donation-resume-banner p {
  margin: 0;
  font-size: 13px;
  font-weight: 700
}

.donation-lookup-form {
  display: flex;
  align-items: end;
  gap: 10px;
  max-width: 580px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border)
}

.donation-lookup-form .donation-field {
  flex: 1
}

.donation-lookup-form .btn {
  flex: 0 0 auto;
  min-height: 44px
}

.donation-lookup-note {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 11px;
  text-align: center
}

.donation-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important
}

.donation-flash {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px
}

.donation-flash-error {
  border-color: rgba(255, 59, 59, .4);
  color: #ff8b8b
}

.donation-flash-success {
  border-color: rgba(66, 190, 130, .38);
  color: #79d4a5
}

.donation-error {
  color: #ff8b8b;
  font-size: 11px
}

.donation-status-page {
  min-height: 100vh;
  background: radial-gradient(800px 500px at 50% 0, var(--accent-soft), transparent 65%), var(--bg)
}

.donation-status-main {
  width: min(100% - 36px, 680px);
  margin: 0 auto;
  padding: 34px 0 40px
}

.donation-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none
}

.donation-back:hover {
  color: var(--accent)
}

.donation-status-panel {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: center
}

.donation-status-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px
}

.donation-status-lunas {
  background: rgba(66, 190, 130, .14);
  color: #49bf83
}

.donation-status-dibatalkan,
.donation-status-ditolak {
  background: rgba(150, 150, 150, .13);
  color: var(--text-dim)
}

.donation-status-panel h1 {
  font-size: clamp(25px, 5vw, 32px)
}

.donation-status-message {
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 14px
}

.donation-thanks-card {
  width: 100%;
  margin: 0 auto 18px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left
}

.donation-thanks-card h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--text)
}

.donation-thanks-message {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line
}

.donation-thanks-signature {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  text-align: right
}

.donation-thanks-paid {
  border-color: rgba(255, 59, 59, .5);
  background: linear-gradient(145deg, var(--accent-soft), var(--surface) 72%);
  box-shadow: 0 10px 30px rgba(255, 59, 59, .1)
}

.donation-thanks-heart {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff
}

.donation-thanks-paid h2 {
  color: var(--accent)
}

.donation-payment-box {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border)
}

.donation-qris-image {
  width: min(100%, 310px);
  max-height: 400px;
  object-fit: contain;
  padding: 8px;
  border-radius: 12px;
  background: #fff
}

.donation-qris-placeholder {
  display: grid;
  width: min(100%, 310px);
  min-height: 190px;
  place-content: center;
  gap: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-dim)
}

.donation-qris-placeholder i {
  font-size: 44px
}

.donation-instruction-list {
  width: min(100%, 440px);
  margin: 0;
  padding: 12px 16px 12px 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  text-align: left;
  font-size: 13px;
  line-height: 1.65
}

.donation-instruction-list li+li {
  margin-top: 7px
}

.donation-download-help {
  max-width: 48ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.65
}

.donation-download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.donation-reference {
  margin: 0;
  color: var(--text-dim);
  font-size: 11px
}

.donation-reference-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px
}

.donation-reference code {
  font-family: var(--mono);
  color: var(--text)
}

.donation-copy-code {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer
}

.donation-copy-code:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.donation-code-help {
  margin: -8px 0 0;
  color: var(--text-dim);
  font-size: 11px
}

.donation-confirm-form {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  text-align: left
}

.donation-confirm-form[hidden] {
  display: none
}

.donation-confirm-form small {
  color: var(--text-dim);
  font-size: 11px
}

.donation-file-input {
  font-size: 12px
}

.donation-file-input::file-selector-button {
  margin-right: 9px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit
}

.donation-cancel-form {
  margin: 0
}

.donation-cancel-button {
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer
}

.donation-cancel-button:hover {
  color: var(--accent)
}

.donation-waiting-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px
}

.donation-status-links {
  justify-content: center;
  margin-top: 0
}

.donation-status-links a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none
}

.donation-status-footer {
  max-width: 58ch;
  margin: 14px auto 0;
  color: var(--text-dim);
  font-size: 11px;
  text-align: center
}

/* ================= CONTACT ================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: start
}

.contact-cards {
  display: grid;
  gap: 10px
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  transition: .2s;
  min-width: 0;
}

.contact-card:hover {
  border-color: rgba(255, 59, 59, .30);
  transform: translateX(3px)
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
}

.contact-icon.whatsapp {
  background: rgba(37, 211, 102, .14);
  color: #25d366
}

.contact-icon.linkedin {
  background: rgba(10, 102, 194, .12);
  color: #0a66c2
}

.contact-icon.github {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border)
}

.contact-icon.instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, .14), rgba(255, 220, 0, .10));
  color: #e1306c
}

.contact-text {
  flex: 1;
  min-width: 0
}

.contact-text span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800
}

.contact-text strong {
  font-size: 13px;
  word-break: break-word
}

.copy-btn,
.contact-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: .2s;
  font-size: 14px;
}

.copy-btn:hover,
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.github-widget {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  min-width: 0;
  word-break: break-word;
}

.github-widget a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none
}

.github-widget a:hover {
  text-decoration: underline
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px
}

.contact-form h3 i {
  color: var(--accent)
}

.form-group {
  margin-bottom: 12px
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 6px
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft)
}

.form-group textarea {
  resize: vertical;
  min-height: 110px
}

.field-error {
  display: block;
  min-height: 16px;
  font-size: 12px;
  color: #ff3b3b;
  margin-top: 4px
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #ff3b3b
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px
}

/* ================= FOOTER ================= */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr;
  gap: 18px;
  align-items: start
}

.footer-brand .logo {
  margin-bottom: 10px
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 46ch
}

.footer-links,
.footer-cta {
  display: grid;
  gap: 10px
}

.footer-links strong,
.footer-cta strong {
  font-size: 13px
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600
}

.footer-links a:hover {
  color: var(--accent)
}

.footer-cta p {
  color: var(--text-dim);
  font-size: 12.5px
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: .2s;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px)
}

footer p {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.6
}

/* ================= MODAL + TOAST + BACKTOP ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: .28s;
  z-index: 2000;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: min(720px, 100%);
  max-height: 90dvh;
  overflow: auto;
  transform: scale(.96) translateY(10px);
  transition: .28s;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0)
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.modal>img {
  width: 100%;
  height: min(300px, 42dvh);
  object-fit: cover;
  background: #1a1a1a;
  border-radius: 24px 24px 0 0
}

.modal-body {
  padding: 18px
}

.modal-body h3 {
  font-family: var(--display);
  font-size: 20px
}

.modal-body p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 13.5px;
  margin-top: 6px
}

.modal-features {
  margin: 12px 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8
}

.modal-features li::marker {
  color: var(--accent)
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px
}

.stack-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 59, 59, .18)
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.cert-modal {
  max-width: 560px
}

.cert-modal-thumb {
  height: 220px;
  border-radius: 24px 24px 0 0;
  display: grid;
  place-items: center;
  font-size: 54px;
  color: #fff
}

.cert-modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111
}

.empty-data {
  grid-column: 1/-1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-align: center;
  font-size: 13px
}

.cert-modal-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 59, 59, .14);
  word-break: break-word
}

.cert-modal-note code {
  font-family: var(--mono);
  font-size: 11px
}

.toast-container {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  animation: toastIn .32s ease;
  word-break: break-word;
}

.toast.success {
  border-color: rgba(34, 197, 94, .35)
}

.toast.success i {
  color: #22c55e
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 59, 59, .38);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .28s;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px)
}

/* ================= REVEAL ================= */
.hidden {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1)
}

.show {
  opacity: 1;
  transform: translateY(0) translateZ(0)
}

/* ================= RESPONSIVE — PERFECT 320 → 1440 ================= */
@media (max-width:1100px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr)
  }

  .skill-container {
    grid-template-columns: repeat(3, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1.2fr .8fr
  }

  .footer-cta {
    grid-column: 1 / -1
  }
}

@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .hero-visual {
    order: -1
  }

  .portrait-stack {
    width: min(100%, 360px)
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .contact-wrap {
    grid-template-columns: 1fr
  }

  .contact-form {
    position: static
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* ===== PREMIUM FULLSCREEN MENU + BOTTOM NAV REVEAL ===== */
@media (max-width:980px) {
  .nav-inner {
    padding: 10px 12px;
    gap: 10px
  }

  .nav-hire {
    display: none
  }

  .nav-actions {
    gap: 8px
  }

  .menu-cta-mobile {
    display: block
  }

  .menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    background: #0d0d0d;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    isolation: auto;
    contain: none;
    will-change: auto;
    z-index: 1002;
    border: none;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: calc(72px + env(safe-area-inset-top)) 24px calc(96px + env(safe-area-inset-bottom));
    gap: 0;
    flex-wrap: nowrap;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .32s ease;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
  }

  .menu::before {
    display: none !important
  }

  .menu,
  .menu * {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important
  }

  [data-theme="light"] .menu {
    background: #ffffff
  }

  .menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important
  }

  .menu li {
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .38s ease, transform .38s cubic-bezier(.16, 1, .3, 1)
  }

  .menu.open li {
    opacity: 1;
    transform: translateY(0)
  }

  .menu.open li:nth-child(1) {
    transition-delay: .06s
  }

  .menu.open li:nth-child(2) {
    transition-delay: .10s
  }

  .menu.open li:nth-child(3) {
    transition-delay: .14s
  }

  .menu.open li:nth-child(4) {
    transition-delay: .18s
  }

  .menu.open li:nth-child(5) {
    transition-delay: .22s
  }

  .menu.open li:nth-child(6) {
    transition-delay: .26s
  }

  .menu.open li:nth-child(7) {
    transition-delay: .30s
  }

  .menu.open li:nth-child(8) {
    transition-delay: .34s
  }

  .menu a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 4px;
    border-radius: 0;
    font-size: clamp(28px, 7.5vw, 40px);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    border-bottom: 1px solid var(--border);
    background: transparent;
    white-space: nowrap;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    transform: none !important;
  }

  .menu a::before {
    content: attr(data-num);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--accent);
    min-width: 28px;
  }

  .menu a:hover,
  .menu a.active {
    color: var(--text);
    background: transparent;
    padding-left: 8px
  }

  .menu a.active {
    color: var(--accent)
  }

  .menu-cta-mobile a {
    font-size: 15px !important;
    font-family: var(--sans) !important;
    letter-spacing: 0 !important;
    justify-content: center;
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: none !important;
    padding: 16px !important;
    margin-top: 16px
  }

  .menu-cta-mobile a::before {
    display: none
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1003
  }

  .nav-overlay {
    z-index: 1001
  }

  .bottom-nav {
    display: flex
  }

  .cmdk-hint {
    display: none
  }
}

@media (min-width:981px) {
  .bottom-nav {
    display: none !important
  }
}

/* bottom nav - thumb friendly */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  width: min(92vw, 420px);
  justify-content: space-between;
}

.bottom-nav a {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: .2s;
}

.bottom-nav a i {
  font-size: 16px
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft)
}

/* cmdk + chat + tilt */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(10px);
  z-index: 4000;
  display: none;
  place-items: start center;
  padding: 20vh 16px 16px
}

.cmdk-overlay.open {
  display: grid
}

.cmdk {
  width: min(640px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.cmdk-input {
  width: 100%;
  padding: 16px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none
}

.cmdk-list {
  max-height: 46vh;
  overflow: auto;
  padding: 8px
}

.cmdk-item {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px
}

.cmdk-item:hover,
.cmdk-item.active {
  background: var(--accent-soft);
  color: var(--accent)
}

.cmdk-item small {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 11px
}

.cmdk-hint {
  font-size: 11px;
  color: var(--text-dim);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between
}

.chat-fab {
  position: fixed;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 59, 59, .38);
  z-index: 950;
  transition: .2s
}

.chat-fab:hover {
  transform: translateY(-2px)
}

@media (max-width:980px) {
  .chat-fab {
    bottom: calc(82px + env(safe-area-inset-bottom))
  }
}

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 24px));
  max-height: min(58vh, 520px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 950;
  display: none;
  flex-direction: column;
  overflow: hidden
}

.chat-panel.open {
  display: flex
}

.chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px
}

.chat-head button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer
}

.chat-msgs {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start
}

.chat-msg {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 84%
}

.chat-msg.bot {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted)
}

.chat-msg.user {
  background: var(--accent);
  color: #fff;
  justify-self: end
}

.chat-input-row {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px
}

.chat-input-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none
}

.chat-input-row button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center
}

/* tilt / magnetic */
.card.tilt {
  transform-style: preserve-3d;
  will-change: transform
}

.btn.magnetic {
  transition: transform .18s ease
}

@media (max-width:720px) {
  .hero {
    padding-top: 16px
  }

  .eyebrow {
    font-size: 12px
  }

  .portrait-stack {
    padding: 10px 10px 14px
  }

  .fc-1 {
    right: 2px
  }

  .fc-2 {
    left: 2px
  }

  section {
    padding: 56px 0
  }
}

@media (max-width:560px) {
  .container {
    width: min(var(--container), calc(100% - 20px))
  }

  .donation-resume-banner {
    align-items: flex-start;
    flex-direction: column
  }

  .donation-lookup-form {
    align-items: stretch;
    flex-direction: column
  }

  .donation-lookup-form .btn {
    width: 100%
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 34px)
  }

  .hero-actions .btn {
    flex: 1 1 auto
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .skill-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .card-container {
    grid-template-columns: 1fr
  }

  .cert-grid {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .timeline {
    padding-left: 22px
  }

  .modal>img {
    height: 200px
  }
}

@media (max-width:360px) {
  .hero-chips .chip {
    font-size: 12px;
    padding: 6px 10px
  }

  .facts>div {
    flex-direction: column;
    align-items: flex-start
  }

  .facts dd {
    text-align: left
  }
}

/* HP — foto jangan ketutup float-card */
@media (max-width:640px) {
  .hero-visual {
    overflow: visible
  }

  .portrait-stack {
    width: min(100%, 320px);
    padding: 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible
  }

  .portrait-card {
    width: 100%
  }

  .profile {
    height: clamp(320px, 92vw, 420px);
    object-position: top center
  }

  .float-card {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .fc-1 {
    order: 2
  }

  .fc-2 {
    order: 3
  }

  .fc-3 {
    order: 4;
    flex-direction: row;
    align-items: center;
    gap: 10px
  }
}

@media (min-width:641px) and (max-width:900px) {
  .portrait-stack {
    overflow: visible
  }

  .fc-1 {
    top: -10px;
    right: -12px
  }

  .fc-2 {
    left: -14px;
    bottom: 20%
  }

  .fc-3 {
    right: -10px;
    bottom: -12px
  }
}

@media (min-width:1440px) {
  .hero h1 {
    font-size: 60px
  }

  .profile {
    height: 400px
  }
}

@media print {

  #preloader,
  .cursor-glow,
  .spotlight,
  #progressBar,
  .back-to-top,
  .toast-container,
  .modal-overlay,
  .hamburger,
  .theme-toggle,
  .nav-overlay,
  .marquee {
    display: none !important
  }

  nav {
    position: static
  }

  body::before {
    display: none
  }
}