@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Bricolage+Grotesque:wght@600;700;800&display=swap');

:root {
  --primary: #0a0c6c;
  --accent: #ff1f3d;
  --soft: #f4f4f6;
  --muted: #6b7280;
  --dark: #050507;

  /* THEME: LIGHT (default) */
  --bg: linear-gradient(135deg, #e8ecff 0%, #f0f4ff 50%, #f8f9ff 100%);
  --bg-portfolio: linear-gradient(135deg, #e8ecff 0%, #f0f4ff 50%, #f8f9ff 100%);
  --text: #0f172a;
  --text-muted: #1f2937;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  --glass-blur: 18px;
  --nav-link: #0f172a;
  --nav-link-hover: #0a0c6c;
  --cta-bg: linear-gradient(135deg, #1b2bff, #0a0c6c);
  --cta-shadow: 0 14px 32px rgba(10, 12, 108, 0.35);
}

html {
  overflow-x: clip;
}

[data-theme="dark"] {
  --bg: radial-gradient(circle at 20% 30%, rgba(27, 43, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(14, 20, 46, 0.5) 0%, transparent 45%),
    linear-gradient(145deg, #05070c 0%, #0b1020 45%, #080a12 100%);
  --bg-portfolio: linear-gradient(145deg, #05070c 0%, #0b1020 45%, #080a12 100%);
  --text: #e5e7eb;
  --text-muted: rgba(229, 231, 235, 0.78);
  --surface: rgba(20, 25, 38, 0.7);
  --surface-strong: rgba(26, 32, 48, 0.82);
  --surface-border: rgba(148, 163, 184, 0.22);
  --glass-shadow: 0 20px 52px rgba(0, 0, 0, 0.55);
  --nav-link: #e5e7eb;
  --nav-link-hover: #9aa6ff;
  --cta-bg: linear-gradient(135deg, #1b2bff, #0a0c6c);
  --cta-shadow: 0 14px 32px rgba(10, 12, 108, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.002em;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

main section {
  scroll-margin-top: 96px;
}

/* Glass utilities */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.glass-strong {
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-img-wrapper {
  position: relative;
  z-index: 2;
}

.hero-img-wrapper::before {
  content: none !important;
  display: none !important;
}

.hero-img-wrapper::after {
  content: none !important;
  display: none !important;
}

.hero-img-wrapper img {
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
  width: 100%;
  height: clamp(220px, 32vw, 340px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-img-wrapper:hover img {
  transform: scale(1.02);
}

a {
  text-decoration: none;
}

main a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: var(--nav-link);
}

main a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
main a:not(.btn):not(.nav-link):not(.dropdown-item):focus {
  color: var(--nav-link-hover);
}

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  justify-content: center;
  padding: 6px 14px;
  background: transparent !important;
  border: none;
  box-shadow: none;
  overflow: visible !important;
  font-family: "Montserrat", system-ui, sans-serif;
}

.navbar.bg-white,
.navbar.shadow-sm {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.navbar + main {
  margin-top: 0.2rem !important;
}

.container.my-4.my-md-5 {
  margin-top: 0.35rem !important;
}

.navbar-collapse {
  overflow: visible !important;
}

/* Let Bootstrap clip content during the height animation */
.navbar-collapse.collapsing {
  overflow: hidden !important;
  will-change: height;
}

.navbar-nav {
  overflow: visible !important;
}

.navbar .container {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  flex: 1 1 auto !important;
  width: min(1140px, calc(100vw - 24px)) !important;
  max-width: min(1140px, calc(100vw - 24px)) !important;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  outline: none;
  position: relative;
  overflow: visible !important;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .navbar .container {
    gap: 0.45rem;
    padding: 6px 10px;
  }

  .navbar .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.96rem;
  }

  .navbar-nav {
    gap: 0.4rem;
  }
}

[data-theme="dark"] .navbar .container {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(26, 32, 48, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.dropdown-menu {
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem !important;
  z-index: 1100;
  min-width: 180px;
  position: absolute !important;
}

.nav-item.dropdown {
  position: relative;
}

.dropdown-item {
  color: var(--nav-link);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(146, 165, 255, 0.14);
  color: var(--nav-link-hover);
}

.navbar .nav-link,
.navbar .navbar-toggler {
  color: var(--nav-link) !important;
  font-family: "Montserrat", system-ui, sans-serif;
}

.navbar .navbar-brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nav-link) !important;
  transition: color 0.2s ease;
}

.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
  color: var(--nav-link-hover) !important;
}

.navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.navbar .nav-link i,
.lang-toggle i,
.theme-toggle i {
  font-size: 1rem;
  color: var(--nav-link);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  background: rgba(10, 12, 108, 0.08);
  color: #0a0c6c !important;
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link:focus,
[data-theme="dark"] .navbar .nav-link.active {
  background: rgba(10, 12, 108, 0.45);
  color: #c7ccff !important;
}

.navbar .nav-link:hover i,
.navbar .nav-link:focus i,
.navbar .nav-link.active i,
.lang-toggle:hover i,
.theme-toggle:hover i {
  color: #0a0c6c;
}

[data-theme="dark"] .navbar .nav-link:hover i,
[data-theme="dark"] .navbar .nav-link:focus i,
[data-theme="dark"] .navbar .nav-link.active i,
[data-theme="dark"] .lang-toggle:hover i,
[data-theme="dark"] .theme-toggle:hover i {
  color: #c7ccff;
}

.navbar .navbar-toggler {
  border-color: var(--surface-border);
  padding: 0.35rem 0.55rem;
  box-shadow: none !important;
  outline: none !important;
}

.navbar .navbar-toggler-icon {
  filter: invert(0.1);
}

[data-theme="dark"] .navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* ── Animated burger → X toggler ── */
.nav-burger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid var(--surface-border);
  background: var(--surface);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-burger:focus,
.nav-burger:active,
.nav-burger:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.nav-burger:focus-visible {
  outline: 2px solid var(--nav-link-hover);
  outline-offset: 2px;
}

.burger-box {
  width: 18px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-link);
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.22s cubic-bezier(0.4, 0, 0.2, 1),
    top       0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width     0.22s ease;
  position: absolute;
  left: 0;
}

.burger-line.top { top: 0; }
.burger-line.mid { top: 50%; transform: translateY(-50%); }
.burger-line.bot { top: 100%; transform: translateY(-100%); }

/* Open state — morph to × */
.nav-burger[aria-expanded="true"] .burger-line.top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .burger-line.mid {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.nav-burger[aria-expanded="true"] .burger-line.bot {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

[data-theme="dark"] .burger-line {
  background: var(--nav-link);
}

#paket .text-white-50 {
  color: rgba(255, 255, 255, 0.8) !important;
}

#paket .btn-light:hover {
  background: var(--surface-strong);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
}

/* Bootstrap button overrides for theme */
.btn-light {
  background: var(--surface-strong);
  border-color: var(--surface-border);
  color: var(--text);
}

.btn-light:hover,
.btn-light:focus {
  background: var(--nav-link-hover);
  border-color: var(--nav-link-hover);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Dark mode fixes for bootstrap utility colors */
[data-theme="dark"] .btn-outline-dark {
  color: var(--text);
  border-color: var(--surface-border);
}

[data-theme="dark"] .btn-outline-dark:hover,
[data-theme="dark"] .btn-outline-dark:focus {
  background: var(--nav-link-hover);
  border-color: var(--nav-link-hover);
  color: #fff;
}

[data-theme="dark"] .text-dark {
  color: var(--text) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

.promo-bar {
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 0;
  z-index: 1040;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--surface-border);
  cursor: pointer;
}

.promo-popup {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(360px, calc(100vw - 32px));
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 0.9rem 1rem 0.85rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 1061;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: center;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.promo-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: promoWiggle 1.1s ease-in-out infinite;
}

@keyframes promoWiggle {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  20% {
    transform: translateY(0) scale(1) rotate(-2deg);
  }
  40% {
    transform: translateY(0) scale(1) rotate(2deg);
  }
  60% {
    transform: translateY(0) scale(1) rotate(-1.2deg);
  }
  80% {
    transform: translateY(0) scale(1) rotate(1.2deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.promo-popup .promo-line {
  font-size: 0.95rem;
}

.promo-popup .promo-line.small {
  font-size: 0.88rem;
}

.promo-popup .countdown {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  gap: 0.25rem;
}

.promo-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}

.promo-close:hover,
.promo-close:focus {
  color: var(--nav-link-hover);
}

.promo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promo-line {
  line-height: 1.3;
  font-size: 1rem;
}
.promo-line.small {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.promo-bar .accent-text {
  color: var(--accent);
}
.promo-bar small {
  font-weight: 500;
  color: var(--text-muted);
}
.countdown {
  color: var(--nav-link);
  font-weight: 700;
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}
.countdown span {
  min-width: 2ch;
  display: inline-block;
  text-align: right;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(7, 9, 68, 0.35);
}

.theme-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.18);
  color: #1f2937;
  box-shadow: none;
  outline: none;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  height: 34px;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: rgba(10, 12, 108, 0.08);
  border-color: rgba(10, 12, 108, 0.25);
  color: #0a0c6c;
  box-shadow: none;
}

.theme-toggle:focus:not(:hover),
.lang-toggle:focus:not(:hover),
.theme-toggle:active:not(:hover),
.lang-toggle:active:not(:hover),
.theme-toggle:focus-visible:not(:hover),
.lang-toggle:focus-visible:not(:hover) {
  outline: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(15, 23, 42, 0.18);
  color: #1f2937;
}

.theme-toggle:focus,
.lang-toggle:focus,
.theme-toggle:active,
.lang-toggle:active,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(226, 232, 240, 0.16);
  color: #e5e7eb;
  box-shadow: none;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-toggle:hover {
  background: rgba(10, 12, 108, 0.45);
  border-color: rgba(100, 120, 255, 0.4);
  color: #c7ccff;
  box-shadow: none;
}

[data-theme="dark"] .theme-toggle:focus:not(:hover),
[data-theme="dark"] .lang-toggle:focus:not(:hover),
[data-theme="dark"] .theme-toggle:active:not(:hover),
[data-theme="dark"] .lang-toggle:active:not(:hover),
[data-theme="dark"] .theme-toggle:focus-visible:not(:hover),
[data-theme="dark"] .lang-toggle:focus-visible:not(:hover) {
  outline: none;
  box-shadow: none;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(226, 232, 240, 0.16);
  color: #e5e7eb;
}

[data-theme="dark"] .theme-toggle:focus,
[data-theme="dark"] .lang-toggle:focus,
[data-theme="dark"] .theme-toggle:active,
[data-theme="dark"] .lang-toggle:active,
[data-theme="dark"] .theme-toggle:focus-visible,
[data-theme="dark"] .lang-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

footer .brand-logo {
  width: 96px !important;
  height: 96px !important;
}

.nav-link {
  font-weight: 500;
  color: var(--nav-link);
}
.nav-link:hover {
  color: var(--nav-link-hover);
}
.btn-cta {
  background: var(--cta-bg);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--cta-shadow);
  outline: none;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #0a0c6c, #060847);
  color: #fff;
  box-shadow: 0 14px 32px rgba(10, 12, 108, 0.45);
}
.btn-cta:focus,
.btn-cta:active,
.btn-cta:focus-visible {
  outline: none;
  box-shadow: var(--cta-shadow);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-toggle .bi {
  font-size: 0.875rem;
}

.lang-toggle .lang-label,
.theme-toggle .theme-label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theme-toggle .nav-icon,
.lang-toggle .bi,
.lang-toggle .nav-icon,
.theme-toggle i {
  color: currentColor;
  opacity: 0.9;
}

/* PORTFOLIO PAGE */
body.portfolio-page {
  background: var(--bg-portfolio);
  color: var(--text);
}

.portfolio-page .navbar {
  background: transparent !important;
  border-bottom: none;
}

.portfolio-page .navbar-brand,
.portfolio-page .nav-link,
.portfolio-page .navbar-toggler {
  color: var(--nav-link) !important;
}

.portfolio-page .nav-link:hover {
  color: var(--nav-link-hover) !important;
}

.portfolio-page .navbar-toggler {
  border-color: var(--surface-border);
}

.portfolio-page .navbar-toggler-icon {
  filter: invert(0.1);
}

[data-theme="dark"] .portfolio-page .navbar-toggler-icon {
  filter: invert(1);
}

.portfolio-page .btn-cta {
  background: var(--cta-bg);
  box-shadow: var(--cta-shadow);
}

.portfolio-hero {
  max-width: 760px;
}

.portfolio-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.portfolio-title {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.portfolio-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.portfolio-section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.portfolio-page .section-title {
  color: var(--text);
  margin-bottom: 0.35rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 0;
}

.section-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--nav-link-hover);
  border: 1px solid var(--surface-border);
  font-weight: 600;
}

.section-pill.alt {
  background: var(--surface);
  color: var(--nav-link-hover);
  border-color: var(--surface-border);
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Keep portfolio cards visually uniform across landing and portfolio pages */
#portfolioSlider,
#portfolio-all .row {
  align-items: stretch !important;
}

#portfolioSlider .portfolio-item,
#portfolio-all .row > [class*="col-"] {
  display: flex;
}

#portfolioSlider .portfolio-item .portfolio-card,
#portfolio-all .row > [class*="col-"] .portfolio-card {
  width: 100%;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow);
}

.portfolio-card-media {
  height: 190px;
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.portfolio-card-body h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
  min-height: calc(1.2rem * 1.3 * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.portfolio-card-body p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: calc(0.95rem * 1.6 * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.portfolio-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nav-link-hover);
  font-weight: 700;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.portfolio-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.portfolio-visit {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nav-link-hover);
  word-break: break-word;
}

.portfolio-visit:hover,
.portfolio-visit:focus {
  color: var(--accent);
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.portfolio-modal.is-open {
  display: block;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.portfolio-modal-dialog {
  position: relative;
  max-width: 960px;
  margin: 4vh auto;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 2.5rem;
  z-index: 1;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.portfolio-modal-dialog::-webkit-scrollbar {
  display: none;
}

.modal-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: 0 4px 16px rgba(15,23,42,0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  z-index: 10;
}

.modal-scroll-hint.hidden {
  opacity: 0;
}

.modal-scroll-hint i {
  font-size: 1rem;
  animation: scrollBounce 1.4s ease-in-out infinite;
  display: block;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--surface-strong);
  border-color: var(--nav-link-hover);
  transform: scale(1.1);
}

.modal-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.modal-badges {
  display: flex;
  gap: 0.5rem;
  margin: 0.4rem 0 1rem;
}

.modal-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
}

.meta-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.meta-card:hover {
  border-color: var(--nav-link-hover);
  box-shadow: var(--glass-shadow);
}

.meta-card .meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-card span:last-child {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.modal-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nav-link-hover);
  font-weight: 700;
}

.modal-header h3 {
  margin: 0.4rem 0 0;
  font-size: 2.2rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal-header p {
  color: var(--text-muted);
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.modal-body {
  display: grid;
  gap: 1.6rem;
}

.modal-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
}

.modal-gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.modal-gallery-track img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  height: clamp(260px, 45vw, 460px);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav:hover {
  background: var(--surface-strong);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.modal-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.modal-gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--surface);
}

.modal-gallery-dots button.active {
  width: 20px;
  background: var(--nav-link-hover);
}

.modal-section h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.modal-section p,
.modal-section li {
  color: var(--text-muted);
}

.modal-section ul {
  padding-left: 1.2rem;
  margin: 0;
}

.modal-section.features ul {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 0;
}

.modal-section.features li {
  display: list-item;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-section.features strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.feature-description {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

.modal-section.long-story p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.modal-section.takeaways ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.modal-section.takeaways li {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  font-size: 0.9rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal-tags span {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .modal-links a {
  border-color: #9aa6ff;
  color: #9aa6ff;
}

.modal-links a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

[data-theme="dark"] .modal-links a:hover {
  background: #9aa6ff;
  border-color: #9aa6ff;
  color: #0a0c6c;
}

body.portfolio-modal-open {
  overflow: hidden;
}

.portfolio-modal-dialog {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-modal.is-open .portfolio-modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .portfolio-modal-dialog {
    padding: 1.5rem;
    margin: 2vh 1rem;
  }

  .modal-header {
    padding-bottom: 1.5rem;
  }

  .modal-close {
    width: 44px;
    height: 44px;
  }

  .modal-header h3 {
    font-size: 1.75rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-section.takeaways ul {
    grid-template-columns: 1fr;
  }
}

.hero {
  background: var(--cta-bg);
  color: var(--text);
  border-radius: 24px;
  overflow: clip;
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.5rem) clamp(1.2rem, 2.5vw, 1.8rem);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}

.hero .row {
  position: relative;
  z-index: 2;
}

.hero .row > .col-lg-6:first-child::before,
.hero::before,
.hero::after,
.hero-img-wrapper::before,
.hero-img-wrapper::after {
  content: none !important;
}

.hero-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hero-arrow {
  position: absolute;
  background-image: url('../assets/element.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.2;
}

.hero-arrow-main {
  width: 360px;
  height: 283px;
  left: 33%;
  top: 36%;
  transform: translate(-50%, -50%) rotate(-2deg);
  opacity: 0.3;
}

/* .hero-arrow-top - removed for cleaner layout */

.hero-arrow-photo-top {
  width: 120px;
  height: 94px;
  top: 12%;
  right: 8%;
  transform: rotate(-8deg);
  opacity: 0.5;
  z-index: 15;
}

/* .hero-arrow-bottom-left - removed for cleaner layout */

/* .hero-arrow-bottom-mid - removed for cleaner layout */

.hero-arrow-bottom-right {
  width: 110px;
  height: 87px;
  bottom: 6%;
  right: -1.2%;
  transform: rotate(0deg);
  opacity: 0.22;
}

.hero .row > .col-lg-6:first-child {
  position: relative;
}

.hero .row > .col-lg-6:first-child::before {
  content: "";
  position: absolute;
  top: -72px;
  left: -185px;
  width: 560px;
  height: 441px;
  background-image: url('../assets/element.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: 0;
  transform: rotate(-25deg);
  filter: brightness(1.2) drop-shadow(0 6px 20px rgba(255,255,255,0.12));
  pointer-events: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background-image: url('../assets/element.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: screen;
  z-index: 1;
}
.hero::before {
  width: 430px;
  height: 339px;
  top: -56px;
  right: -72px;
  opacity: 0.11;
  transform: rotate(18deg);
}
.hero::after {
  width: 300px;
  height: 236px;
  bottom: -40px;
  left: 1%;
  opacity: 0.12;
  transform: rotate(-28deg);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  position: relative;
  z-index: 2;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.badge-soft {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.pill-btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
}

.section-title {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text);
  font-weight: 600;
}
.muted {
  color: var(--text-muted);
}

.back-link {
  color: var(--nav-link);
  font-weight: 600;
}

.back-link:hover,
.back-link:focus {
  color: var(--nav-link-hover);
}

.card-service {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(10, 12, 108, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.card-service:hover {
  transform: translateY(-8px);
  background: var(--surface-strong);
  box-shadow:
    0 12px 40px rgba(10, 12, 108, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.35rem;
}
.gradient {
  background: linear-gradient(135deg, #1b2bff, #0a0c6c) !important;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  position: relative;
}
.step {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 1.1rem;
  text-align: center;
  box-shadow:
    0 8px 24px rgba(7, 9, 68, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}

/* Reduce spacing between subtitle and process content */
#cara-kerja .text-center {
  margin-bottom: 1.35rem !important;
}

#cara-kerja .text-center .section-title {
  margin-bottom: 0.65rem;
}

#cara-kerja .text-center p {
  margin-bottom: 0.2rem;
}

.steps-container {
  padding: 3rem 0;
  position: relative;
}

#cara-kerja .steps-container {
  padding-top: 0.35rem !important;
  padding-bottom: 0 !important;
  overflow: visible;
}

.steps-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.step.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}

.step-dot i {
  font-size: 1.4rem;
  color: white !important;
  display: inline-block;
  line-height: 1;
}

.step-dot {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin: 0 auto 15px;
}

.step.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.step:hover {
  transform: translateY(-6px);
  background: var(--surface-strong);
  box-shadow:
    0 12px 32px rgba(7, 9, 68, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  color: #fff;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(10, 12, 108, 0.18);
  transition: box-shadow 0.22s ease;
}

.step-dot i,
.icon-circle i {
  font-size: 1.5rem;
  line-height: 0;
}

.step-dot:hover {
  box-shadow: 0 12px 26px rgba(10, 12, 108, 0.26);
}

.highlight-box {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
}

.icon-square {
  background: var(--primary) !important;
  border: 1px solid rgba(10, 12, 108, 0.1);
  border-radius: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(10, 12, 108, 0.2);
  flex-shrink: 0;
}

.icon-square i {
  color: #ffffff !important;
  font-size: 1.5rem;
  line-height: 1;
}

.challenge-box {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: var(--glass-shadow);
}

.challenge-title {
  color: var(--text);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.01em;
}

.challenge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.06s;
}
.delay-2 {
  transition-delay: 0.12s;
}
.delay-3 {
  transition-delay: 0.18s;
}
.delay-4 {
  transition-delay: 0.24s;
}
.delay-5 {
  transition-delay: 0.3s;
}

/* Hover pulse for icons */
.icon-circle:hover {
  box-shadow: 0 12px 26px rgba(10, 12, 108, 0.26);
}

@media (min-width: 992px) {
  /* Roadmap timeline on desktop */
  .steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: relative;
    gap: 2rem;
    padding-top: 1.4rem;
  }
  .step {
    padding-top: 94px;
  }
  .step-dot {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 64px;
    height: 64px;
  }

  .step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
  }

  .step-item h6 {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
  }

  .step-item p {
    line-height: 1.5;
    font-size: 0.85rem;
  }

  .step-icon-box {
    width: 70px;
    height: 70px;
    background: var(--surface-strong);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: white;
    position: relative;
    box-shadow: var(--glass-shadow);
    border: 4px solid var(--surface-strong);
  }

  .steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
  }

  .steps-wrapper::before {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background: linear-gradient(135deg, #959ad8, #bebedd);
    z-index: 0;
  }

  .step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .step-icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #1b2bff, #0a0c6c) !important;
    border-radius: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem !important;
    position: relative;
    border: 4px solid #f3f6ff;
    box-shadow: 0 10px 20px rgba(10, 12, 108, 0.2);
  }

  .step-icon-box i {
    font-size: 1.4rem !important;
    color: white !important;
    line-height: 1;
  }

  .step-item h6 {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
  }

  [data-theme="dark"] .step-item h6 {
    color: var(--text);
  }

  .step-item p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 0 10px;
  }

  .testimonial-slide {
    width: 50%;
    flex: 0 0 50%;
  }

  .testimonial-card {
    height: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .hero-arrow-main {
    width: 270px;
    height: 212px;
    left: 35%;
    top: 38%;
    opacity: 0.3;
  }

  /* .hero-arrow-top - removed */

  .hero-arrow-photo-top {
    width: 90px;
    height: 71px;
    top: 14%;
    right: 9%;
    opacity: 0.45;
    z-index: 15;
  }

  /* .hero-arrow-bottom-left - removed */

  /* .hero-arrow-bottom-mid - removed */

  .hero-arrow-bottom-right {
    width: 82px;
    height: 64px;
    bottom: 6%;
    right: -1%;
    opacity: 0.22;
  }

  .hero .row > .col-lg-6:first-child::before {
    width: 340px;
    height: 268px;
    top: -54px;
    left: -92px;
  }

  .hero::before {
    width: 350px;
    height: 276px;
    top: -42px;
    right: -52px;
    opacity: 0.1;
  }

  .hero::after {
    width: 250px;
    height: 197px;
    bottom: -30px;
    left: 0;
    opacity: 0.12;
  }

  .hero-img-wrapper::before {
    width: 180px;
    height: 142px;
    top: -20px;
    left: -20px;
  }

  .hero-img-wrapper::after {
    width: 210px;
    height: 165px;
    bottom: -24px;
    right: -26px;
  }

  .hero-img-wrapper img {
    height: 300px !important;
    margin-top: 2rem;
  }

  .steps-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding-left: 20px;
    position: relative;
  }
  .step-item {
    display: flex !important;
    align-items: center;
    text-align: left !important;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
  }
  .step-icon-box {
    margin: 0 !important;
    flex-shrink: 0;
    width: 56px !important;
    height: 56px !important;
  }

  .steps-wrapper::before {
    content: "";
    position: absolute;
    left: 48px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(10, 12, 108, 0.18);
    z-index: 0;
  }

  [data-theme="dark"] .steps-wrapper::before {
    background: rgba(149, 154, 216, 0.45);
  }

  .step-content h6 {
    margin-top: 0 !important;
  }
}

.step-icon-box {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #1b2bff, #0a0c6c) !important;
  border-radius: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 4px solid #f3f6ff;
  box-shadow: 0 10px 20px rgba(10, 12, 108, 0.2);
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(255, 31, 61, 0.3);
}

.step-icon-box i {
  color: #ffffff !important;
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(10, 12, 108, 0.2);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 12px 26px rgba(10, 12, 108, 0.26);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(10, 12, 108, 0.2);
  }
}

.project-card,
.testimonial-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: background 0.3s ease;
}

.project-card {
  background: var(--surface);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 0;
  min-height: auto;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}

.project-card.p-0 {
  padding: 0 !important;
}

.project-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.port-nav-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.port-nav-btn:hover {
  background: var(--nav-link-hover);
  color: #fff;
  border-color: var(--nav-link-hover);
}

.skill-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--nav-link-hover);
  color: #fff;
  border-color: var(--nav-link-hover);
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial-card:hover {
  background: var(--surface-strong);
}

.client-meta strong {
  color: var(--text);
  margin-top: 1rem;
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  padding: 1rem 0 3rem;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  justify-content: flex-start;
}

.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  column-gap: 2rem;
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  padding: 0;
}

.carousel-btn {
  background: rgba(10, 12, 108, 0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(10, 12, 108, 0.25);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(10, 12, 108, 0.12);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .carousel-btn {
  background: rgba(124, 139, 255, 0.18);
  border-color: rgba(124, 139, 255, 0.45);
  color: #e5e7eb;
}

[data-theme="dark"] .carousel-btn:hover,
[data-theme="dark"] .carousel-btn:focus {
  background: rgba(124, 139, 255, 0.28);
}

.carousel-btn:active {
  animation: btnPress 0.3s ease-out;
}

@keyframes btnPress {
  0% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.1);
  }
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.portfolio-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.portfolio-actions .portfolio-controls {
  flex: 1;
  justify-content: center;
}

.portfolio-actions .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.testimonial-track-wrapper,
.steps-container {
  overflow: hidden;
}

@media (max-width: 768px) {
  .testimonial-carousel {
    padding: 2rem 0;
  }

  .testimonial-slide {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .carousel-btn:active {
    animation: btnPressMobile 0.3s ease-out;
  }

  @keyframes btnPressMobile {
    0% {
      transform: scale(1.05);
    }
    50% {
      transform: scale(0.92);
    }
    100% {
      transform: scale(1.05);
    }
  }
}

/* Floating WhatsApp Button */
.wa-floating {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--glass-shadow);
  z-index: 1060;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wa-floating:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.wa-floating i {
  font-size: 1.6rem;
}

@media (max-width: 576px) {
  .wa-floating {
    right: 14px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .promo-popup {
    right: 12px;
    bottom: 80px;
    width: min(260px, calc(100vw - 24px));
    padding: 0.6rem 0.75rem 0.6rem;
    border-radius: 12px;
  }

  .promo-popup .promo-line {
    font-size: 0.78rem;
  }

  .promo-popup .promo-line.small {
    font-size: 0.72rem;
  }

  .promo-popup .countdown {
    font-size: 0.72rem;
    margin-top: 0.3rem;
  }

  .promo-close {
    font-size: 1rem;
    top: 4px;
    right: 6px;
  }
}

footer {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--surface-border);
  color: var(--text);
  padding: 3.5rem 0 0.5rem;
  font-family: "Montserrat", system-ui, sans-serif;
}
footer hr {
  display: none;
}
.footer-copyright {
  color: var(--text-muted) !important;
  display: block;
  padding: 0.5rem 0 1.5rem 0;
  font-size: 0.95rem;
  margin-top: 2.5rem;
}
.footer-brand {
  font-size: 1.05rem;
}
footer h6,
footer .footer-brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
}
footer .footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.55rem;
}
footer .footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.26);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
footer .footer-social-link:hover {
  color: var(--nav-link-hover);
  border-color: var(--nav-link-hover);
  background: var(--surface-strong);
}
[data-theme="dark"] footer .footer-social-link {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(20, 25, 38, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--nav-link-hover);
}

/* =====================================================
   RESPONSIVE — TABLET & MOBILE
   ===================================================== */

/* --- Tablet / collapsed navbar (< 992px) --- */
@media (max-width: 991.98px) {
  /* Pill switches to a rounded rectangle so it expands cleanly */
  .navbar .container {
    flex-wrap: wrap;
    border-radius: 20px;
    gap: 0.5rem;
    padding: 8px 14px;
    align-items: center;
  }

  .navbar-brand {
    flex: 1;
  }

  /* Collapsed menu: full-width, separated from the bar */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    width: 100%;
    border-top: 1px solid var(--surface-border);
    padding-top: 0.6rem;
    margin-top: 0.35rem;
  }

  /* Speed up Bootstrap's collapse height transition */
  .navbar-collapse.collapsing {
    transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Stack nav links into a column */
  .navbar .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.15rem;
    width: 100%;
    padding-bottom: 0.4rem;
  }

  .navbar .nav-item {
    width: 100%;
  }

  /* Nav links fill the row */
  .navbar .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
  }

  /* Theme + lang toggles: auto-width so they sit side-by-side */
  .navbar .nav-item:has(.theme-toggle),
  .navbar .nav-item.dropdown {
    width: auto !important;
    flex: 0 0 auto;
  }

  /* Utility row: theme + lang toggles inline */
  .navbar .navbar-nav {
    flex-wrap: wrap;
    flex-direction: row !important;
  }

  .navbar .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar .navbar-nav .nav-item:has(.theme-toggle),
  .navbar .navbar-nav .nav-item:has(.lang-toggle) {
    width: auto !important;
  }

  .navbar .navbar-nav .nav-item:has(.theme-toggle),
  .navbar .navbar-nav .nav-item:has(.lang-toggle) {
    flex: 0 0 auto;
  }

  .navbar .navbar-nav .nav-item:has(.theme-toggle) ~ .nav-item:not(:has(.lang-toggle)) {
    width: 100%;
  }

  /* CTA button: full width on mobile */
  .navbar .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
    margin-top: 0.25rem;
    padding: 0.6rem 1rem;
  }

  .navbar .ms-lg-2 {
    margin-left: 0 !important;
  }

  /* Hero image: cap height on tablets */
  .hero-img-wrapper::before {
    width: 120px;
    height: 95px;
    top: -12px;
    left: -12px;
  }

  .hero-img-wrapper::after {
    width: 140px;
    height: 110px;
    bottom: -14px;
    right: -16px;
  }

  .hero-img-wrapper img {
    height: clamp(200px, 35vw, 300px);
  }
}

/* --- Mobile (< 768px) --- */
@media (max-width: 767.98px) {
  /* Container padding */
  main.container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  /* Reduce Bootstrap section spacing */
  main section.mb-5 {
    margin-bottom: 2.5rem !important;
  }
  main section.pb-5 {
    padding-bottom: 1.5rem !important;
  }
  main section.pb-3 {
    padding-bottom: 0.75rem !important;
  }

  /* Section header spacing */
  .text-center.mb-5 {
    margin-bottom: 1.75rem !important;
  }

  /* Row gap reduction */
  .row.g-4 {
    --bs-gutter-y: 0.85rem;
    --bs-gutter-x: 0.85rem;
  }

  /* Hero */
  .hero {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }

  .hero .row > .col-lg-6:first-child::before {
    width: 290px;
    height: 228px;
    top: -52px;
    left: -74px;
    opacity: 0.15;
  }

  .hero::before {
    width: 320px;
    height: 252px;
    top: -34px;
    right: -40px;
  }

  .hero::after {
    width: 220px;
    height: 173px;
    bottom: -24px;
    left: 0;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
    margin-bottom: 0.5rem !important;
  }

  .hero .lead {
    font-size: 0.92rem;
    margin-bottom: 0.75rem !important;
  }

  .hero .mt-4 {
    margin-top: 0.75rem !important;
  }

  .hero-arrow-main {
    width: 210px;
    height: 165px;
    left: 34%;
    top: 31%;
    opacity: 0.26;
  }

  /* .hero-arrow-top - removed */

  .hero-arrow-photo-top {
    width: 76px;
    height: 60px;
    top: 51%;
    right: 7%;
    opacity: 0.42;
    z-index: 15;
  }

  /* .hero-arrow-bottom-left - removed */

  /* .hero-arrow-bottom-mid - removed */

  .hero-arrow-bottom-right {
    width: 66px;
    height: 52px;
    bottom: 47%;
    right: 2%;
    opacity: 0.2;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    margin-bottom: 0.35rem !important;
  }

  /* Challenge section */
  .challenge-box {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .challenge-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    margin-bottom: 0.5rem !important;
  }

  .challenge-item {
    gap: 0.65rem !important;
  }

  .challenge-item h6 {
    font-size: 0.88rem;
    margin-bottom: 0.2rem !important;
  }

  .challenge-item p {
    font-size: 0.8rem;
  }

  /* Service cards */
  .card-service {
    padding: 1rem 0.9rem;
    border-radius: 14px;
  }

  .card-service h5 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem !important;
  }

  .card-service p {
    font-size: 0.82rem;
  }

  .icon-circle {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
    margin-bottom: 0.65rem !important;
  }

  /* Steps cara kerja */
  .steps-container {
    padding: 1rem 0;
  }

  .step-item {
    gap: 0.9rem !important;
  }

  .step-icon-box {
    width: 46px !important;
    height: 46px !important;
  }

  .step-icon-box i {
    font-size: 1.1rem !important;
  }

  .step-content h6 {
    font-size: 0.88rem;
  }

  .step-content p {
    font-size: 0.78rem;
  }

  /* Paket section */
  #paket .card-service {
    padding: 1.5rem 1rem !important;
    border-radius: 14px !important;
  }

  #paket h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem);
  }

  #paket .lead {
    font-size: 0.88rem;
  }

  /* Highlight / advantages box */
  .highlight-box {
    padding: 1rem;
    border-radius: 14px;
  }

  .highlight-box .d-flex.flex-column {
    gap: 0.85rem !important;
  }

  .highlight-box .d-flex.align-items-start {
    gap: 0.65rem !important;
  }

  .icon-square {
    width: 42px !important;
    height: 42px !important;
  }

  .icon-square i {
    font-size: 1.1rem !important;
  }

  .highlight-box strong {
    font-size: 0.88rem;
  }

  .highlight-box p {
    font-size: 0.8rem;
  }

  /* Testimonial */
  .testimonial-carousel {
    padding: 1.25rem 0 1.5rem;
  }

  .testimonial-card {
    padding: 1rem;
    min-height: 0 !important;
  }

  .testimonial-card p {
    font-size: 0.85rem;
  }

  /* Hero: reduce row gap between text and image on mobile */
  .hero .row {
    --bs-gutter-y: 1rem;
  }

  /* Portfolio slider: ensure card fits fully and doesn't clip */
  .portfolio-slider-container {
    overflow: hidden;
  }

  #portfolioSlider.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-wrap: nowrap;
  }

  #portfolioSlider .portfolio-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Footer: stacked columns on mobile, same internal layout as desktop */
  footer {
    padding: 2rem 0 0.5rem;
  }

  footer .brand-logo {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0;
  }

  footer ul.list-unstyled {
    padding-left: 0;
  }

  .footer-brand {
    font-size: 0.85rem;
  }

  footer p.muted {
    font-size: 0.78rem;
  }

  footer h6 {
    font-size: 0.8rem;
    margin-bottom: 0.4rem !important;
  }

  footer a,
  footer li {
    font-size: 0.78rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
    margin-top: 1.25rem;
    padding-bottom: 0.75rem;
  }

  /* Promo bar */
  .promo-bar {
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}

/* --- Small mobile (< 576px) --- */
@media (max-width: 575.98px) {
  main.container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  main section.mb-5 {
    margin-bottom: 2rem !important;
  }

  .hero {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  .hero .row > .col-lg-6:first-child::before {
    width: 260px;
    height: 205px;
    top: -40px;
    left: -66px;
    opacity: 0.14;
  }

  .hero::before {
    width: 240px;
    height: 189px;
    top: -22px;
    right: -30px;
    opacity: 0.1;
  }

  .hero::after {
    width: 170px;
    height: 134px;
    bottom: -18px;
    left: 0;
    opacity: 0.11;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    margin-bottom: 0.4rem !important;
  }

  .hero .lead {
    font-size: 0.88rem;
  }

  .hero-arrow-main {
    width: 180px;
    height: 142px;
    left: 35%;
    top: 28%;
    opacity: 0.24;
  }

  /* .hero-arrow-top - removed */

  .hero-arrow-photo-top {
    width: 64px;
    height: 50px;
    top: 54%;
    right: 6%;
    opacity: 0.4;
    z-index: 15;
  }

  /* .hero-arrow-bottom-left - removed */

  /* .hero-arrow-bottom-mid - removed */

  .hero-arrow-bottom-right {
    width: 52px;
    height: 41px;
    bottom: 49%;
    right: 2%;
    opacity: 0.18;
  }

  /* Hero CTA buttons: keep horizontal */
  .hero .d-flex.flex-wrap.gap-3 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem !important;
  }

  /* Hero image: reduce gap from text */
  .hero-img-wrapper {
    margin-top: 0.5rem;
  }

  .hero-img-wrapper::before {
    width: 90px;
    height: 71px;
    top: -8px;
    left: -8px;
  }

  .hero-img-wrapper::after {
    width: 110px;
    height: 87px;
    bottom: -10px;
    right: -10px;
  }

  .hero-img-wrapper img {
    height: 150px;
  }

  .section-title {
    font-size: clamp(1.15rem, 6vw, 1.5rem);
  }

  /* Cards tighter */
  .card-service {
    padding: 0.85rem 0.75rem;
    border-radius: 12px;
  }

  .card-service h5 {
    font-size: 0.88rem;
  }

  .card-service p {
    font-size: 0.78rem;
  }

  .icon-circle {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem !important;
  }

  .challenge-box {
    padding: 0.9rem 0.85rem;
    border-radius: 12px;
  }

  .highlight-box {
    padding: 0.9rem;
    border-radius: 12px;
  }

  .icon-square {
    width: 36px !important;
    height: 36px !important;
  }

  .icon-square i {
    font-size: 0.95rem !important;
  }

  #paket .card-service {
    padding: 1.25rem 0.9rem !important;
  }

  #paket h2 {
    font-size: clamp(1.15rem, 5.5vw, 1.5rem);
  }

  .testimonial-card {
    padding: 0.85rem;
  }

  .testimonial-card p {
    font-size: 0.8rem;
  }
}
