/* ==========================================================================
   MN Online Apps — Premium Glass Theme (Bootstrap 5.3 + Poppins)
   Token warna di :root (light) dan [data-theme="dark"] (default).
   ========================================================================== */
:root {
  --brand-1: #2563eb;
  --brand-2: #0ea5e9;
  --brand-grad: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --bg: #f4f7fc;
  --bg-2: #eaf0fa;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .92);
  --border: rgba(15, 23, 42, .10);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5b6b82;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --glow: 0 0 0 1px rgba(37, 99, 235, .25), 0 14px 40px rgba(37, 99, 235, .18);
  --radius: 1.25rem;
  --nav-h: 76px;
  --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-link-color-rgb: 37, 99, 235;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
}
[data-theme="dark"] {
  --bg: #070d1c;
  --bg-2: #0b1428;
  --surface: rgba(17, 25, 45, .62);
  --surface-strong: rgba(17, 25, 45, .9);
  --border: rgba(255, 255, 255, .09);
  --text: #f1f5fb;
  --text-2: #c6d2e4;
  --muted: #93a3bd;
  --shadow: 0 12px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .5);
  --glow: 0 0 0 1px rgba(56, 189, 248, .35), 0 16px 46px rgba(14, 165, 233, .22);
  --bs-link-color-rgb: 56, 189, 248;
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--bs-body-font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* aurora lembut di belakang konten */
  content: ""; position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 15% 15%, rgba(37, 99, 235, .16), transparent 60%),
    radial-gradient(35vw 35vw at 85% 10%, rgba(14, 165, 233, .14), transparent 60%);
}
h1, h2, h3, h4, h5, h6, .display-font { font-family: var(--bs-body-font-family); font-weight: 700; letter-spacing: -.02em; color: var(--text); }
p, li { color: var(--text-2); }
.text-muted, .small-muted { color: var(--muted) !important; }
a { text-decoration: none; }
::selection { background: rgba(37, 99, 235, .3); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 2000; background: var(--brand-1); color: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------------------------------------------------------------- utilities */
.text-gradient { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-1); margin-bottom: .75rem; }
[data-theme="dark"] .eyebrow { color: #38bdf8; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { font-size: 1.05rem; }
.lead { color: var(--text-2); }

/* ---------------------------------------------------------------- glass */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  height: 100%;
  position: relative;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card, .navbar-glass, .glass-strong { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.glass-strong { background: var(--surface-strong); }
.hover-glow:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.gradient-border { position: relative; }
.gradient-border::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 99, 235, .7), rgba(14, 165, 233, .1), rgba(56, 189, 248, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: inline-grid; place-items: center; font-size: 1.3rem;
  color: #fff; background: var(--brand-grad); box-shadow: 0 10px 24px rgba(37, 99, 235, .3); margin-bottom: 1.1rem;
}
.chip { display: inline-block; font-size: .74rem; font-weight: 500; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); background: rgba(37, 99, 235, .06); margin: 0 .3rem .35rem 0; }

/* ---------------------------------------------------------------- buttons */
.btn { font-weight: 600; border-radius: 999px; padding: .72rem 1.5rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-brand { color: #fff; background: var(--brand-grad); border: 0; box-shadow: 0 10px 26px rgba(37, 99, 235, .35); }
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 99, 235, .45); }
.btn-glass { color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.btn-glass:hover { color: var(--text); border-color: var(--brand-2); transform: translateY(-2px); }
.btn-outline-glass { color: var(--text); background: transparent; border: 1px solid var(--border); }
.btn-outline-glass:hover { color: var(--text); border-color: var(--brand-1); background: rgba(37, 99, 235, .08); }

/* ---------------------------------------------------------------- navbar */
.navbar-glass { background: var(--surface); border-bottom: 1px solid var(--border); min-height: var(--nav-h); transition: box-shadow .3s; }
.navbar-glass.scrolled { box-shadow: var(--shadow); background: var(--surface-strong); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text) !important; line-height: 1.1; }
.navbar-brand small { display: block; font-weight: 500; font-size: .62rem; letter-spacing: .14em; color: var(--muted); }
.navbar .nav-link { color: var(--text-2); font-weight: 500; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 999px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand-1); }
[data-theme="dark"] .navbar .nav-link:hover, [data-theme="dark"] .navbar .nav-link.active { color: #38bdf8; }
.navbar .nav-link.active { background: rgba(37, 99, 235, .1); }
.navbar-toggler { border: 1px solid var(--border); color: var(--text); }
.navbar-toggler-icon { background-image: none; display: inline-grid; place-items: center; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; color: var(--muted); }
.lang-switch a.active { background: var(--brand-grad); color: #fff; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; }
.dropdown-menu { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-lg); padding: .5rem; }
.dropdown-item { color: var(--text-2); border-radius: .6rem; padding: .55rem .8rem; font-size: .9rem; }
.dropdown-item:hover { background: rgba(37, 99, 235, .1); color: var(--text); }
@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; margin-top: .5rem; box-shadow: var(--shadow-lg); }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(56px, 8vw, 100px); position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; }
.hero .lead { font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .82rem; font-weight: 500; color: var(--text-2); margin-bottom: 1.4rem; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }
.hero-stats strong { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .shot { border-radius: 1.1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--bg-2); }
.hero-visual .shot img { display: block; width: 100%; height: auto; }
.hero-visual .shot-1 { transform: rotate(-2deg); }
.hero-visual .shot-2 { position: absolute; width: 58%; right: -4%; bottom: -14%; transform: rotate(3deg); }
.floating-chip { position: absolute; display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; border-radius: .9rem; background: var(--surface-strong); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; color: var(--text); animation: floaty 6s ease-in-out infinite; }
.floating-chip i { color: var(--brand-2); }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.page-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(36px, 5vw, 60px); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; max-width: 900px; margin: 0 auto 1rem; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }
.breadcrumb { justify-content: center; font-size: .82rem; margin-bottom: 1.2rem; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ---------------------------------------------------------------- marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--text-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- portfolio */
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.project-card:hover .thumb img { transform: scale(1.04); }
.project-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-card h2, .project-card h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: .5rem; }
.project-card h2 a, .project-card h3 a { color: var(--text); }
.project-card h2 a:hover, .project-card h3 a:hover { color: var(--brand-2); }
.project-card h2 a::after, .project-card h3 a::after { content: ""; position: absolute; inset: 0; } /* seluruh kartu dapat diklik */
.project-card .meta { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-1); margin-bottom: .4rem; }
[data-theme="dark"] .project-card .meta { color: #38bdf8; }
.project-card .live-link { position: relative; z-index: 2; }
.filter-bar .btn { margin: .25rem; }
.filter-bar .btn.active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.browser-frame { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface-strong); }
.browser-frame .bar { display: flex; align-items: center; gap: .4rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
.browser-frame .bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-frame .bar span:nth-child(2) { background: #fbbf24; }
.browser-frame .bar span:nth-child(3) { background: #34d399; margin-right: .6rem; }
.browser-frame img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- content / prose */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.55rem; margin: 2.2rem 0 .9rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .7rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose img { max-width: 100%; height: auto; border-radius: 1rem; }
.prose blockquote { border-left: 4px solid var(--brand-2); padding: 1rem 1.4rem; margin: 1.8rem 0; background: var(--surface); border-radius: 0 1rem 1rem 0; font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- process / timeline */
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand-grad); flex-shrink: 0; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand-1), var(--brand-2)); opacity: .5; }
.timeline-item { position: relative; margin-bottom: 1.8rem; }
.timeline-item::before { content: ""; position: absolute; left: -2rem; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand-2); }
.timeline-item strong { color: var(--brand-1); }
[data-theme="dark"] .timeline-item strong { color: #38bdf8; }

/* ---------------------------------------------------------------- accordion */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--border); --bs-accordion-color: var(--text); --bs-accordion-btn-color: var(--text); --bs-accordion-active-bg: rgba(37, 99, 235, .08); --bs-accordion-active-color: var(--text); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-item { background: var(--surface); border-radius: 1rem !important; margin-bottom: .75rem; overflow: hidden; border: 1px solid var(--border) !important; }
.accordion-button { font-weight: 600; font-size: .98rem; }
[data-theme="dark"] .accordion-button::after { filter: invert(1); }
.accordion-body { color: var(--text-2); }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select { background: var(--surface-strong); border: 1px solid var(--border); color: var(--text); border-radius: .85rem; padding: .75rem 1rem; }
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus { background: var(--surface-strong); color: var(--text); border-color: var(--brand-2); box-shadow: 0 0 0 .25rem rgba(14, 165, 233, .18); }
[data-theme="dark"] .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c6d2e4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
[data-theme="dark"] .form-select option { background: #0b1428; }
.form-label { font-weight: 500; font-size: .88rem; color: var(--text-2); }
.form-check-input { background-color: var(--surface-strong); border-color: var(--border); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; margin-top: 1rem; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* ---------------------------------------------------------------- tables */
.table-glass { --bs-table-bg: transparent; --bs-table-color: var(--text-2); --bs-table-border-color: var(--border); }
.table-glass th { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- CTA & footer */
.cta-banner { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(37, 99, 235, .22), transparent 70%); pointer-events: none; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 2rem; }
.site-footer h4 { font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--brand-1); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: inline-grid; place-items: center; margin-right: .4rem; color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: var(--muted); }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 28px rgba(34, 197, 94, .45); z-index: 1040; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.back-to-top { position: fixed; right: 26px; bottom: 88px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-strong); color: var(--text); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .3s; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- reveal */
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.no-js .scroll-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scroll-reveal { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
  .glass-card { padding: 1.35rem; }
  .hero-visual .shot-2 { display: none; }
}
