/* ==========================================================
   Portfolio — Public Front-end Theme
   Selaras dengan tema admin panel: glassmorphism + slate + gradient
   ========================================================== */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; min-height:100vh;
  font-family:'Segoe UI',ui-sans-serif,system-ui,sans-serif;
  background: radial-gradient(circle at 10% 10%, #1e293b, #0f172a 45%),
              radial-gradient(circle at 90% 90%, #312e81, transparent 55%),
              linear-gradient(135deg,#0f172a,#1e1b4b 70%,#0f172a);
  background-attachment: fixed;
  color:#e2e8f0;
}
select {
      background-color: #0f172a;
      color: #f8fafc;
      border: 1px solid #334155;
  }
  select option {
      background-color: #0f172a;
      color: #f8fafc;
  }

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
  background:#0f172a; color:#7dd3fc; padding:10px 16px; border-radius:10px; z-index:100;
}
.skip-link:focus{ left:12px; top:12px; width:auto; height:auto; }

.glass{
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.glass-solid{
  background: rgba(30,41,59,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
}
.glass-input{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color:#e2e8f0;
}
.glass-input:focus{ outline:none; border-color: rgba(125,211,252,0.55); box-shadow:0 0 0 3px rgba(125,211,252,0.12); }
.glass-input::placeholder{ color:#64748b; }

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.15); border-radius:8px; }

/* ---------- SIDEBAR (desktop icon rail) ---------- */
#sidebar{ width:96px; }
.nav-item{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; padding:12px 4px; border-radius:16px; cursor:pointer; text-decoration:none;
  color:#94a3b8; transition: all .18s ease; text-align:center;
}
.nav-item i{ font-size:22px; }
.nav-item span{ font-size:10px; font-weight:600; letter-spacing:.02em; line-height:1.1; }
.nav-item:hover{ background:rgba(255,255,255,0.08); color:#f1f5f9; transform:translateY(-1px); }
.nav-item.active{ background:linear-gradient(135deg, rgba(125,211,252,0.25), rgba(192,132,252,0.25)); color:#fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }

/* ---------- MOBILE grid menu ---------- */
#mobileMenu.open{ display:block !important; }
.nav-item-box{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; padding:16px 8px; border-radius:18px; cursor:pointer; text-decoration:none;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  color:#cbd5e1; aspect-ratio:1/1;
}
.nav-item-box i{ font-size:26px; }
.nav-item-box span{ font-size:11px; font-weight:600; text-align:center; }
.nav-item-box.active{ background:linear-gradient(135deg, rgba(125,211,252,0.28), rgba(192,132,252,0.28)); color:#fff; }

/* ---------- BUTTONS ---------- */
.btn-primary{ background:linear-gradient(135deg,#7dd3fc,#c084fc); color:#0f172a; font-weight:600; transition:.15s; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn-primary:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.btn-soft{ background:rgba(255,255,255,0.08); color:#e2e8f0; transition:.15s; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn-soft:hover{ background:rgba(255,255,255,0.14); }
.btn-outline{ background:transparent; border:1px solid rgba(255,255,255,.2); color:#e2e8f0; transition:.15s; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn-outline:hover{ border-color:rgba(125,211,252,.6); color:#7dd3fc; }

/* ---------- BADGES ---------- */
.badge{ display:inline-block; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:600; white-space:nowrap; }
.badge-blue{ background:rgba(125,211,252,.15); color:#7dd3fc; }
.badge-purple{ background:rgba(192,132,252,.15); color:#c084fc; }
.badge-pink{ background:rgba(244,114,182,.15); color:#f472b6; }
.badge-green{ background:rgba(74,222,128,.15); color:#4ade80; }
.badge-amber{ background:rgba(251,191,36,.15); color:#fbbf24; }
.badge-red{ background:rgba(248,113,113,.15); color:#fca5a5; }
.badge-slate{ background:rgba(148,163,184,.15); color:#94a3b8; }

/* ---------- CARDS ---------- */
.card{ background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:20px; transition:.2s ease; }
.card:hover{ background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.18); transform:translateY(-2px); }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); font-size:12px; color:#cbd5e1; }

/* ---------- STAR RATING ---------- */
.star-rating i{ color:#fbbf24; font-size:15px; }
.star-rating i.bx-star{ color:#475569; }

/* ---------- TIMELINE (work experience / process) ---------- */
.timeline{ position:relative; padding-left:28px; }
.timeline::before{ content:''; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background:linear-gradient(180deg, rgba(125,211,252,.6), rgba(192,132,252,.15)); }
.timeline-item{ position:relative; padding-bottom:28px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{ position:absolute; left:-28px; top:4px; width:20px; height:20px; border-radius:999px; background:#0f172a; border:2px solid #7dd3fc; display:flex; align-items:center; justify-content:center; }
.timeline-dot.current{ border-color:#4ade80; box-shadow:0 0 0 4px rgba(74,222,128,.15); }

/* ---------- ACCORDION (services) ---------- */
.accordion-body{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.accordion-item.open .accordion-body{ max-height:600px; }
.accordion-toggle i.bx-chevron-down{ transition:transform .25s ease; }
.accordion-item.open .accordion-toggle i.bx-chevron-down{ transform:rotate(180deg); }

/* ---------- LIGHTBOX / MODAL (image gallery) ---------- */
.modal-backdrop{ position:fixed; inset:0; background:rgba(2,6,23,0.75); backdrop-filter:blur(4px); z-index:70; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-box{ width:100%; max-width:900px; max-height:90vh; }

/* ---------- FORM ---------- */
.form-label{ font-size:12px; color:#cbd5e1; margin-bottom:6px; display:block; font-weight:600; }

/* ---------- PAGE LOADER (ajax nav) ---------- */
.page-loader{ position:absolute; inset:0; background:rgba(15,23,42,.55); backdrop-filter:blur(2px); z-index:20; display:flex; align-items:center; justify-content:center; border-radius:24px; }
.page-loader.hidden{ display:none; }
.spinner{ width:34px; height:34px; border-radius:50%; border:3px solid rgba(255,255,255,.15); border-top-color:#7dd3fc; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- HERO ---------- */
.hero-blob{ position:absolute; border-radius:9999px; filter:blur(90px); opacity:.35; pointer-events:none; }
.avatar-fallback{ display:flex; align-items:center; justify-content:center; font-weight:700; background:linear-gradient(135deg,#7dd3fc,#c084fc); color:#0f172a; }

.line-clamp-3{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width:767px){
  #sidebar{ display:none; }
}
