/* =============================================================
   FAJAR VALENTINO PORTFOLIO — style.css
   Design System: Light Blue — iqbalfr inspired
   ============================================================= */

/* ── Google Fonts ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Colors — LIGHT BLUE iqbalfr */
  --c-bg: #EFEFEF;
  --c-bg2: #E4E4E4;
  --c-surface: #FFFFFF;
  --c-surface-2: #F5F5F5;
  --c-border: #DCDCDC;
  --c-border-hi: #C4C4C4;

  --c-primary: #3558D6;
  /* blue primary */
  --c-p2: #2446C0;
  /* deeper blue  */
  --c-accent: #5B7FFF;
  /* lighter blue accent */
  --c-accent2: #3558D6;
  --c-pink: #3558D6;
  --c-text: #1A1A2E;
  --c-muted: #5A5A7A;
  --c-white: #ffffff;

  /* Gradients */
  --g-primary: linear-gradient(135deg, #2446C0, #3558D6);
  --g-primary-h: linear-gradient(135deg, #3558D6, #5B7FFF);
  --g-accent: linear-gradient(135deg, #3558D6, #5B7FFF);
  --g-hero: linear-gradient(160deg, #EFEFEF 0%, #F0F2FF 60%, #EFEFEF 100%);
  --g-card: linear-gradient(135deg, rgba(53, 88, 214, .04) 0%, transparent 60%);
  --g-text: linear-gradient(135deg, #3558D6 0%, #2446C0 40%, #5B7FFF 80%);
  --g-text2: linear-gradient(135deg, #5B7FFF, #3558D6);
  --g-glow-p: radial-gradient(circle at 50% 0%, rgba(53, 88, 214, .12) 0%, transparent 60%);
  --g-glow-c: radial-gradient(circle at 50% 100%, rgba(53, 88, 214, .08) 0%, transparent 60%);

  /* Footer */
  --footer-bg: #1B3FD6;
  --footer-bg2: #1533B8;

  /* Typography */
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: 100px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 180ms var(--ease);
  --t-normal: 320ms var(--ease);
  --t-slow: 500ms var(--ease);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* No dark orbs on light theme */
body::before {
  display: none;
}

body>* {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--c-primary);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Typography Scale ─────────────────────────────────────── */
.t-disp {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.t-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.t-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.t-h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
}

.t-body {
  font-size: 1rem;
  line-height: 1.75;
}

.t-sm {
  font-size: .875rem;
}

.t-xs {
  font-size: .75rem;
}

.t-mono {
  font-family: var(--font-mono);
}

.t-prime {
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.t-accent {
  color: var(--c-accent);
}

.t-muted {
  color: var(--c-muted);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container--sm {
  max-width: 800px;
}

.container--lg {
  max-width: 1400px;
}

section {
  padding-block: var(--section-pad);
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--g-primary);
  border-radius: 2px;
}

/* ── Navbar ────────────────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(239, 239, 239, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: var(--t-normal);
}

#navbar.scrolled {
  background: rgba(239, 239, 239, .97);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: Fajar(black) + Valentino(blue) */
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  color: var(--c-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  background: none;
  -webkit-text-fill-color: unset;
}

.nav-logo .dot {
  color: var(--c-primary);
  -webkit-text-fill-color: var(--c-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color var(--t-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width var(--t-fast);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--c-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--c-primary) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  font-size: .875rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(53, 88, 214, .3);
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(53, 88, 214, .45);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  transition: var(--t-fast);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .9375rem;
  transition: var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(53, 88, 214, .3);
}

.btn-primary:hover {
  background: var(--c-p2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(53, 88, 214, .45);
}

.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border-hi);
}

.btn-secondary:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(53, 88, 214, .06);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--c-primary);
  padding-inline: 4px;
  border-bottom: 1px solid transparent;
}

.btn-ghost:hover {
  border-color: var(--c-primary);
}

.btn svg {
  flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
}

.card:hover {
  border-color: rgba(53, 88, 214, .25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 30, 60, .1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(53, 88, 214, .08);
  border: 1px solid rgba(53, 88, 214, .15);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

/* ── KPI Chips ────────────────────────────────────────────────────────── */
.kpi-chip {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--t-normal), transform var(--t-normal);
}

.kpi-chip:hover {
  border-color: rgba(53, 88, 214, .25);
  transform: translateY(-3px);
}

.kpi-value {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.1;
}

.kpi-label {
  font-size: .8125rem;
  color: var(--c-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Tag / Chip pill ────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(53, 88, 214, .08);
  color: var(--c-primary);
  border: 1px solid rgba(53, 88, 214, .15);
}

.tag-blue {
  background: rgba(53, 88, 214, .12);
  color: var(--c-p2);
  border-color: rgba(53, 88, 214, .2);
}

/* ── Hero Section ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 120px 80px;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}

/* Subtle blue glow top-right */
#hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(53, 88, 214, .1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  display: none;
}

.hero-glow-1 {
  display: none;
}

.hero-glow-2 {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

/* Hero badge (available pill) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(53, 88, 214, .08);
  border: 1px solid rgba(53, 88, 214, .2);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

.hero-title {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--c-text);
}

.hero-title .highlight {
  color: var(--c-primary);
  background: none;
  -webkit-text-fill-color: var(--c-primary);
}

.hero-title .highlight-2 {
  color: var(--c-p2);
  background: none;
  -webkit-text-fill-color: var(--c-p2);
}

.hero-sub {
  color: var(--c-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}

.hero-tagline-en {
  margin-top: 0;
  font-size: .8125rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  opacity: .7;
}

/* ── Hero RIGHT side — Photo like iqbalfr ── */
.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 32px;
  overflow: visible;
}

.hero-card::before {
  display: none;
}

.hero-card::after {
  display: none;
}

/* Photo circle */
.hero-card-role {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--c-bg2);
  border: 4px solid var(--c-border);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 40px rgba(53, 88, 214, .15);
  margin: 0;
  padding: 0;
}

.hero-card-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: top center;
}

/* Floating skill badges */
.skill-pill-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  display: block;
  margin: 0;
}

.skill-pill {
  position: absolute;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  white-space: nowrap;
  z-index: 3;
  animation: fbob 3s ease-in-out infinite;
  pointer-events: none;
  color: var(--c-text);
}

.skill-pill:nth-child(1) {
  top: 0px;
  left: -20px;
  animation-delay: 0s;
}

.skill-pill:nth-child(2) {
  top: 0px;
  right: -20px;
  animation-delay: .5s;
}

.skill-pill:nth-child(3) {
  bottom: 40px;
  left: -30px;
  animation-delay: 1s;
}

.skill-pill:nth-child(4) {
  bottom: 40px;
  right: -30px;
  animation-delay: 1.5s;
}

.skill-pill:nth-child(5) {
  display: none;
}

.skill-pill:nth-child(6) {
  display: none;
}

@keyframes fbob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.hero-stat-row {
  display: none;
}

/* ── What I Do (Services) ─────────────────────────────────── */
#services {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
  border-radius: 0 0 2px 2px;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.service-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--c-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Impact / KPI ──────────────────────────────────────────── */
#impact {
  background: rgba(6, 182, 212, .03);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

#impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .4), transparent);
}

.impact-header {
  text-align: center;
  margin-bottom: 56px;
}

.impact-note {
  text-align: center;
  margin-top: 24px;
  font-size: .8125rem;
  color: var(--c-muted);
}

/* ── Case Studies ─────────────────────────────────────────── */
#case-studies {
  border-top: 1px solid var(--c-border);
}

.cs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.cs-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.cs-card-thumb {
  height: 180px;
  background: rgba(255, 255, 255, .03);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  border: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
}

.cs-card-thumb .thumb-bg {
  position: absolute;
  inset: 0;
  opacity: .12;
}

.cs-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.cs-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

.cs-summary {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.65;
}

.cs-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.cs-metric {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--c-accent);
}

.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: 8px;
  transition: gap var(--t-fast);
}

.cs-link:hover {
  gap: 10px;
}

/* ── Systems Lab ──────────────────────────────────────────── */
#systems-lab {
  background: rgba(236, 72, 153, .03);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

#systems-lab::before {
  content: 'SYSTEMS LAB';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(168, 85, 247, .03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -.03em;
}

.lab-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.tool-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
  backdrop-filter: blur(12px);
}

.tool-card:hover {
  border-color: rgba(168, 85, 247, .4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(168, 85, 247, .08);
}

.tool-card-header {
  padding: 22px 24px 18px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tool-name {
  font-weight: 700;
  font-size: 1rem;
}

.tool-desc {
  font-size: .8rem;
  color: var(--c-muted);
}

.tool-body {
  padding: 24px;
}

.tool-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Input / Select / Textarea */
.t-input,
.t-select,
.t-textarea {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: .875rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.t-input:focus,
.t-select:focus,
.t-textarea:focus {
  border-color: rgba(168, 85, 247, .6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .1);
}

.t-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a855f7' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.t-textarea {
  resize: vertical;
  min-height: 80px;
}

.t-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-muted);
  margin-bottom: 4px;
  display: block;
}

.tool-result {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 16px;
  min-height: 80px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--c-text);
  white-space: pre-wrap;
  line-height: 1.6;
}

.tool-result.has-result {
  border-color: rgba(168, 85, 247, .35);
}

.tool-cta {
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--c-muted);
}

.tool-cta a {
  color: var(--c-primary);
  font-weight: 600;
}

/* ── Process Timeline ─────────────────────────────────────── */
#process {
  border-top: 1px solid var(--c-border);
}

.process-header {
  text-align: center;
  margin-bottom: 70px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .4), rgba(6, 182, 212, .4), transparent);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.timeline-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border-hi);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: border-color var(--t-normal), background var(--t-normal);
}

/* Wrapper to handle gradient text with border */
.timeline-num {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border-hi);
  -webkit-text-fill-color: initial;
  color: var(--c-primary);
}

.timeline-step:hover .timeline-num {
  background: rgba(168, 85, 247, .12);
  border-color: var(--c-primary);
}

.timeline-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── Stack / Tools Section ────────────────────────────────── */
#stack {
  background: rgba(6, 182, 212, .03);
  border-top: 1px solid var(--c-border);
}

.stack-header {
  text-align: center;
  margin-bottom: 56px;
}

.stack-group {
  margin-bottom: 40px;
}

.stack-group-title {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--t-fast);
}

.stack-pill:hover {
  border-color: rgba(168, 85, 247, .5);
  color: var(--c-primary);
  background: rgba(168, 85, 247, .07);
}

.stack-pill .ico {
  font-size: 1rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── About ────────────────────────────────────────────────── */
#about {
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.about-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .7), rgba(6, 182, 212, .7), transparent);
}

.about-card-main::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--g-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about-name-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.about-role {
  color: var(--c-muted);
  font-size: .9rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
}

.principle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  margin-top: 6px;
  flex-shrink: 0;
}




.about-story {
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-highlight {
  background: rgba(53, 88, 214, .05);
  border-left: 3px solid var(--c-primary);
  padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .9375rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(53, 88, 214, .07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-lead {
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
}

.ci-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(168, 85, 247, .1);
  border: 1px solid rgba(168, 85, 247, .15);
  display: grid;
  place-items: center;
  font-size: .9375rem;
  flex-shrink: 0;
}

.ci-value {
  font-weight: 500;
}

.ci-label {
  font-size: .75rem;
  color: var(--c-muted);
}

/* Form */
.contact-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--r-xl);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .6), rgba(6, 182, 212, .6), transparent);
}

.form-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.form-note {
  font-size: .875rem;
  color: var(--c-muted);
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: .9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(168, 85, 247, .6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a855f7' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit-wrap {
  margin-top: 8px;
}

.form-privacy {
  font-size: .75rem;
  color: var(--c-muted);
  margin-top: 12px;
}

/* Need type grid */
.need-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.need-option {
  display: none;
}

.need-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-fast);
}

.need-option:checked+.need-label {
  background: rgba(168, 85, 247, .1);
  border-color: rgba(168, 85, 247, .5);
  color: var(--c-primary);
}

.need-label .ico {
  font-size: 1rem;
}

/* ── Footer ─ solid blue like iqbalfr ─────────────────────────────── */
#footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, .85);
  padding: 56px 0 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-inner .nav-logo {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-inner .nav-logo .dot {
  color: rgba(255, 255, 255, .6);
  -webkit-text-fill-color: rgba(255, 255, 255, .6);
}

.footer-copy {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
  margin-top: 6px;
}

.footer-stack {
  font-size: .72rem;
  color: rgba(255, 255, 255, .3);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.footer-links a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 14px;
}

/* Sosmed icon row */
.footer-sosmed {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.sm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}

.sm-icon:hover {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transform: translateY(-2px);
}

.sm-icon.hidden {
  display: none;
}

/* Bottom copyright bar */
.footer-bottom-bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255, 255, 255, .25);
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(239, 239, 239, .97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-muted);
  transition: color var(--t-fast);
}

.mobile-nav a:hover {
  color: var(--c-primary);
}

/* Tools link in mobile nav (highlighted) */
.mobile-nav .mobile-tools-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary);
  padding: 10px 22px;
  border: 1.5px solid rgba(53, 88, 214, .35);
  background: rgba(53, 88, 214, .08);
  border-radius: var(--r-sm);
  margin-top: 8px;
  transition: var(--t-fast);
}

.mobile-nav .mobile-tools-link:hover {
  background: rgba(53, 88, 214, .14);
  border-color: var(--c-primary);
  color: var(--c-p2);
}

/* Primary CTA in mobile nav */
.mobile-nav .mobile-cta {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  padding: 12px 26px;
  border-radius: var(--r-sm);
  box-shadow: 0 6px 20px rgba(53, 88, 214, .35);
  transition: var(--t-fast);
}

.mobile-nav .mobile-cta:hover {
  background: var(--c-p2);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--c-muted);
  padding: 8px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 500px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .timeline::before {
    display: none;
  }

  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .container {
    padding-inline: 20px;
  }

  #navbar {
    padding: 14px 0;
  }

  .nav-logo {
    font-size: 1.15rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .need-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .contact-form {
    padding: 24px;
  }

  /* ── Hero polish on mobile ─── */
  #hero {
    padding-block: 80px 56px;
    min-height: auto;
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-card {
    padding: 24px 12px;
    margin: 0 auto;
    max-width: 320px;
  }

  .hero-card-role {
    width: 240px;
    height: 240px;
  }

  .skill-pill {
    font-size: .68rem;
    padding: 6px 11px;
  }

  .skill-pill:nth-child(1) {
    top: 8px;
    left: 0;
  }

  .skill-pill:nth-child(2) {
    top: 8px;
    right: 0;
  }

  .skill-pill:nth-child(3) {
    bottom: 32px;
    left: -4px;
  }

  .skill-pill:nth-child(4) {
    bottom: 32px;
    right: -4px;
  }

  /* ── Override inline 2-col grids ─── */
  #services > .container > [style*="grid-template-columns:1fr 1fr"],
  #services > .container > [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .tool-body [style*="grid-template-columns:1fr 1fr"],
  .tool-body [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Tool cards mobile ─── */
  .tool-card-header {
    padding: 18px 18px 14px;
    gap: 10px;
  }

  .tool-name {
    font-size: .95rem;
  }

  .tool-desc {
    font-size: .75rem;
  }

  .tool-body {
    padding: 18px;
  }

  /* ── About card padding ─── */
  .about-card-main {
    padding: 26px;
  }

  .about-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-actions .btn {
    justify-content: center;
    width: 100%;
  }

  /* ── CS header mobile ─── */
  .cs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ── Section labels & headings ─── */
  .services-header,
  .impact-header,
  .lab-header,
  .process-header,
  .stack-header {
    margin-bottom: 40px;
  }

  .t-h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  /* ── Footer collapse ─── */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 16px 20px;
  }

  /* Footer CTA fits */
  #footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* ── Mobile nav close button safe area ─── */
  .mobile-close {
    top: 16px;
    right: 16px;
  }
}

/* ── Extra-small phones (<= 480px) ─── */
@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

  .container {
    padding-inline: 16px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .hero-card {
    padding: 20px 8px;
    max-width: 100%;
  }

  .hero-card-role {
    width: 200px;
    height: 200px;
  }

  .skill-pill {
    font-size: .65rem;
    padding: 5px 10px;
  }

  .skill-pill:nth-child(1),
  .skill-pill:nth-child(2) {
    top: 4px;
  }

  .skill-pill:nth-child(3),
  .skill-pill:nth-child(4) {
    bottom: 18px;
  }

  .card {
    padding: 22px;
  }

  .kpi-chip {
    padding: 22px 18px;
  }

  .contact-form {
    padding: 20px;
    border-radius: var(--r-lg);
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 11px 14px;
    font-size: .9rem;
  }

  .about-card-main {
    padding: 22px;
  }

  .tool-card-header {
    padding: 16px 14px 12px;
  }

  .tool-body {
    padding: 14px;
  }

  .t-input,
  .t-select,
  .t-textarea {
    padding: 9px 12px;
    font-size: .85rem;
  }

  .btn {
    padding: 12px 22px;
    font-size: .9rem;
  }

  /* Section labels smaller */
  .section-label {
    font-size: .7rem;
  }

  /* Hero badge wraps cleanly */
  .hero-badge {
    font-size: .75rem;
    padding: 6px 12px;
  }

  /* About highlight tighter */
  .about-highlight {
    padding: 14px 16px;
    font-size: .9rem;
  }

  /* CS title smaller */
  .cs-title {
    font-size: 1rem;
  }

  /* Tool result */
  .tool-result {
    padding: 12px;
    font-size: .75rem;
  }

  /* Hide scratched section background pseudo */
  #systems-lab::before {
    font-size: clamp(2.6rem, 14vw, 5rem);
  }
}


/* ── Utilities ────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-12 {
  margin-bottom: 48px;
}

.mt-4 {
  margin-top: 16px;
}

.divide {
  width: 60px;
  height: 3px;
  background: var(--g-primary);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.w-full {
  width: 100%;
}