:root{
  --bg: #070B16;
  --bg2:#0B1220;
  --card:#0F172A;
  --border: rgba(255,255,255,.08);
  --text:#E5E7EB;
  --muted:#9CA3AF;
  --accent:#22D3EE;
  --accent2:#A78BFA;

  /* sinkron dengan navbar */
  --navH: 76px;     /* tinggi navbar desktop */
  --navPX: 24px;    /* sama seperti Bootstrap px-4 */
}

@media (max-width: 991.98px){
  :root{
    --navH: 72px;   /* tinggi navbar mobile */
    --navPX: 16px;  /* padding kiri-kanan mobile */
  }
}

/* =========================
   BASE
   ========================= */
html,body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  overflow-x: hidden;
  background: radial-gradient(1200px 600px at 70% 10%, rgba(34,211,238,.15), transparent 60%),
              radial-gradient(900px 500px at 10% 20%, rgba(167,139,250,.12), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }
.text-muted{ color: var(--muted) !important; }

/* supaya anchor scroll tidak ketutup navbar */
section[id]{ scroll-margin-top: 90px; }

/* =========================
   NAVBAR (FIXED TOP ALWAYS)
   ========================= */
.nav-glass{
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 9999;

  backdrop-filter: blur(10px);
  background: rgba(7,11,22,.65) !important;
  border-bottom: 1px solid var(--border);
}

/* brand */
.navbar-brand .fw-semibold{ letter-spacing: .2px; }

.brand-mark{
  width:34px;height:34px;border-radius:10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display:inline-block;
  box-shadow: 0 12px 30px rgba(34,211,238,.18);
}

/* nav link */
.navbar .nav-link{
  color: rgba(229,231,235,.75) !important;
  font-weight: 600;
  padding: .45rem .70rem;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.navbar .nav-link:hover{
  color: rgba(229,231,235,.95) !important;
  background: rgba(255,255,255,.06);
}

/* ACTIVE */
.navbar .nav-link.active{
  color: var(--accent) !important;
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.18);
}

/* kalau kamu masih pakai mode Home tanpa kotak */
.navbar .nav-link.active-home{
  color: var(--accent) !important;
  background: transparent !important;
  border: 0 !important;
}

/* toggler */
.navbar .navbar-toggler{
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: .45rem .6rem;
}
.navbar .navbar-toggler:focus{
  box-shadow: 0 0 0 .2rem rgba(34,211,238,.15);
}

/* icon btn */
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.icon-btn:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

/* panel mobile kanan */
@media (max-width: 991.98px){
  .navbar .navbar-collapse{
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);
    left: auto;

    width: min(340px, calc(100vw - 32px));
    padding: 12px;
    border-radius: 16px;

    background: rgba(7,11,22,.82);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 80px rgba(0,0,0,.55);
    z-index: 10000;
  }

  .navbar .navbar-nav{
    align-items: stretch !important;
    gap: 6px;
    margin: 0;
  }

  .navbar .nav-link{
    width: 100%;
    text-align: left;
  }

  .nav-actions{
    margin-top: 10px;
    justify-content: flex-start;
  }
}

/* spacer untuk memberi jarak karena navbar fixed */
.nav-spacer{ height: var(--navH); }

/* =========================
   BUTTONS / CARDS / BADGE
   ========================= */
.btn-accent{
  background: linear-gradient(135deg, var(--accent), #3B82F6);
  border: 0;
  color: #081225;
  font-weight: 700;
}
.btn-accent:hover{ filter: brightness(1.05); }

.btn-ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

.card-dark{
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  border-radius: 18px;
}

.project-card{
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
}

.badge-soft{
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.25);
  color: #BFF6FF;
  font-weight: 700;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}

/* =========================
   HERO
   ========================= */
.hero--bleed{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  /* FIX JELEH: tarik hero naik nutup spacer */
  margin-top: calc(-1 * var(--navH));
}

.hero-bg{
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 610px;
}

.hero-bg::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 18% 42%, rgba(0,0,0,.28), transparent 62%),
    linear-gradient(90deg, rgba(7,11,22,.92) 0%, rgba(7,11,22,.62) 48%, rgba(7,11,22,.18) 100%);
}

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;

  /* padding kiri-kanan sama dengan navbar, dan tambah navH di atas */
  padding: calc(92px + var(--navH)) var(--navPX) 120px;
}

.hero-content{ max-width: 720px; }

.hero-kicker{
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: rgba(34,211,238,.95);
  margin-bottom: 12px;
}

.hero-title{
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
  margin: 0 0 16px;
  text-shadow: 0 18px 70px rgba(0,0,0,.45);
}

.grad{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub{
  color: rgba(229,231,235,.85);
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.accent-word{
  color: var(--accent);
  font-weight: 800;
}

.hero-features{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(229,231,235,.78);
  margin-bottom: 22px;
}

.feature{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.fi{
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.sep{
  color: rgba(255,255,255,.22);
  font-weight: 800;
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* METRICS BAR */
.hero-metrics{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  z-index: 2;

  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;

  background: rgba(15,23,42,.42);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 90px rgba(0,0,0,.45);
}

.metric{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.mi{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 1.15rem;
}

.mtx{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mval{
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}

.mlabel{
  color: rgba(156,163,175,.95);
  font-size: .92rem;
}

/* responsive */
@media (max-width: 992px){
  .hero-metrics{
    gap: 12px;
    padding: 12px 14px;
  }
  .metric{ min-width: 140px; }
}

@media (max-width: 768px){
  .hero-bg{ min-height: 520px; }

  .hero-inner{
    padding: calc(70px + var(--navH)) var(--navPX) 18px;
  }

  .hero-metrics{
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 14px 14px 0;
    width: calc(100% - 28px);
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .metric{
    min-width: calc(50% - 10px);
  }
}