/* =====================================================================
   YAYAN DIGITAL — style.css
   Aesthetic: dark cyber-portfolio, crimson + electric blue + neon green.
   Built mobile-aware, theme-switchable, animation-ready.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --font-display: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --red: #e11d2a;
  --red-bright: #ff2e3e;
  --red-deep: #8a0f17;
  --blue: #2f9bff;
  --green: #34d058;

  --sidebar-w: 286px;
  --header-h: 80px;
}

[data-theme="dark"] {
  --bg: #050608;
  --bg-2: #0a0c10;
  --panel: #0d1015;
  --panel-soft: #11151c;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f4f6fa;
  --text-soft: #aeb6c2;
  --text-dim: #6b7280;
  --sidebar-bg: radial-gradient(140% 120% at 0% 0%, #1a0306 0%, #0a0103 55%, #050102 100%);
  --hero-glow: radial-gradient(55% 75% at 72% 32%, rgba(47,155,255,0.12), transparent 70%);
  --card-bg: linear-gradient(160deg, #0e131b, #0a0d12);
  --shadow: 0 30px 80px -30px rgba(0,0,0,0.85);
  --radar: rgba(225,29,42,0.45);
  --line-color: 47,155,255;
  --grain-opacity: 0.04;
}

[data-theme="light"] {
  --bg: #eef0f5;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f1f3f8;
  --border: rgba(15,23,42,0.10);
  --border-strong: rgba(15,23,42,0.16);
  --text: #0c1118;
  --text-soft: #475063;
  --text-dim: #8893a3;
  --sidebar-bg: radial-gradient(140% 120% at 0% 0%, #fff1f2 0%, #ffe0e3 45%, #ffcdd1 100%);
  --hero-glow: radial-gradient(55% 75% at 72% 32%, rgba(47,155,255,0.14), transparent 70%);
  --card-bg: linear-gradient(160deg, #ffffff, #f4f6fb);
  --shadow: 0 24px 60px -28px rgba(15,23,42,0.28);
  --radar: rgba(225,29,42,0.28);
  --line-color: 47,120,200;
  --grain-opacity: 0.02;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%;
  scrollbar-width: thin; scrollbar-color: var(--red-deep) var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  transition: background .45s ease, color .45s ease;
  cursor: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-deep); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

a { color: inherit; }

/* ---------- PAGE LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  gap: 26px; grid-auto-flow: row;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 64px;
  color: #fff; width: 96px; height: 96px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  border-radius: 22px; transform: rotate(-6deg); overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(225,29,42,0.7);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes loaderPulse { 0%,100%{ transform: rotate(-6deg) scale(1);} 50%{ transform: rotate(-6deg) scale(1.08);} }
.loader-bar { width: 180px; height: 4px; background: var(--panel-soft); border-radius: 4px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: 4px; animation: loaderFill 1.4s ease forwards; }
@keyframes loaderFill { to { width: 100%; } }

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,0.6); transform: translate(-50%,-50%); transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease; }
.cursor-ring.hover { width: 54px; height: 54px; background: rgba(255,255,255,0.08); border-color: var(--red-bright); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } body { cursor: auto; } }

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-strong);
  z-index: 100;
  box-shadow: inset -1px 0 0 rgba(225,29,42,0.22), 14px 0 50px -30px rgba(225,29,42,0.4);
  transition: transform .4s cubic-bezier(.4,0,.2,1), background .45s ease;
}
/* Border hias dipasang di .sidebar (fixed, setinggi viewport) supaya
   selalu membingkai seluruh area sidebar yang terlihat — termasuk baris
   ikon sosial di bawah. Sebelumnya dipasang di .sidebar-inner yang
   scroll, sehingga border tidak menjangkau socials. */
.sidebar::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(225,29,42,0.32); border-radius: 18px;
  pointer-events: none; z-index: 1;
}
.sidebar-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: 24px 20px 24px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(225,29,42,0.45) transparent;
}
.sidebar-inner::-webkit-scrollbar { width: 6px; }
.sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.sidebar-inner::-webkit-scrollbar-thumb { background: rgba(225,29,42,0.4); border-radius: 4px; }
.sidebar-inner::-webkit-scrollbar-thumb:hover { background: rgba(225,29,42,0.65); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; }
.brand-logo {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  border-radius: 11px; transform: rotate(-6deg); overflow: hidden;
  box-shadow: 0 8px 20px -6px rgba(225,29,42,0.7);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .5px; color: var(--text); }
.brand-sub { font-size: 11px; letter-spacing: 4px; color: #d9b27a; margin-top: 4px; }

.avatar-wrap { position: relative; display: flex; justify-content: center; margin: 2px 0 10px; }
.avatar-ring {
  position: absolute; top: 50%; left: 50%;
  width: clamp(118px, 19vh, 150px); height: clamp(142px, 23vh, 180px);
  transform: translate(-50%,-50%); border-radius: 50%;
  border: 2px dashed rgba(225,29,42,0.35); animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.avatar {
  width: clamp(106px, 17vh, 134px); height: clamp(130px, 21vh, 164px); border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #3a0a0e, #120203 72%);
  border: 2px solid var(--red); overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(225,29,42,0.08), 0 18px 40px -18px rgba(225,29,42,0.6); z-index: 1;
}
.avatar svg, .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 80%; height: 92%; }
.avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.avatar-status {
  position: absolute; bottom: 10px; right: calc(50% - 50px); width: 15px; height: 15px;
  background: var(--green); border: 3px solid var(--bg); border-radius: 50%; z-index: 2;
  box-shadow: 0 0 0 0 rgba(52,208,88,0.6); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(52,208,88,0.55);} 70%{ box-shadow: 0 0 0 10px rgba(52,208,88,0);} 100%{ box-shadow: 0 0 0 0 rgba(52,208,88,0);} }

.profile { text-align: center; margin-bottom: 14px; }
.profile-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.profile-role { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 2px; }
.profile-online { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 12px; color: var(--text-soft); padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 30px; }
.profile-online .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }

.nav { display: flex; flex-direction: column; gap: 2px; }
/* Guard: elemen sidebar inti default-nya SELALU terlihat. GSAP boleh
   menimpa lewat inline style saat menganimasikan, tapi kalau animasi
   gagal/terlewat, nav tidak ikut hilang. */
.sidebar .brand, .sidebar .avatar-wrap, .sidebar .profile > *,
.sidebar .nav-link, .sidebar .socials a { opacity: 1; }
.nav-link {
  display: flex; align-items: center; gap: 13px; padding: 10px 16px;
  color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  border-radius: 11px; position: relative; transition: all .22s ease;
}
/* jaring pengaman: kalau GSAP gagal, nav & socials tetap terlihat */
.no-gsap .nav-link, .no-gsap .socials a, .no-gsap .profile > *, .no-gsap .sidebar .brand { opacity: 1 !important; transform: none !important; }
.nav-ico { display: inline-flex; opacity: .85; }
.nav-link:hover { color: var(--text); background: rgba(225,29,42,0.10); transform: translateX(4px); }
.nav-link.active { color: var(--red); background: linear-gradient(90deg, rgba(225,29,42,0.22), rgba(225,29,42,0.02)); font-weight: 600; }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 4px; background: var(--red); }

.socials { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; }
.socials a {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-soft); border: 1px solid var(--border-strong); text-decoration: none;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.socials a:hover { transform: translateY(-4px); }
/* SVG sebagai block + line-height:0 menghapus celah baseline,
   supaya ikon benar-benar center di kotak (sosial, tombol ikon, dll). */
.socials a, .icon-btn, .hamburger, .back-top, .service-ico, .nav-ico { line-height: 0; }
.socials a svg, .icon-btn svg, .hamburger svg, .back-top svg,
.service-ico svg, .nav-ico svg, .card-thumb svg, .theme-icon svg { display: block; }

/* hover warna khas tiap platform — hanya ikon yang di-hover yang menyala */
.social-instagram:hover {
  color: #fff; border-color: transparent;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 10px 22px -8px rgba(214,36,159,0.7);
}
.social-x:hover {
  color: #fff; background: #000; border-color: #000;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,0.7);
}
[data-theme="light"] .social-x:hover { box-shadow: 0 10px 22px -8px rgba(0,0,0,0.45); }
.social-threads:hover {
  color: #fff; background: #000; border-color: #000;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,0.6);
}
.social-linkedin:hover {
  color: #fff; background: #0a66c2; border-color: #0a66c2;
  box-shadow: 0 10px 22px -8px rgba(10,102,194,0.7);
}
/* di tema terang, Threads pakai garis supaya tetap terlihat */
[data-theme="light"] .social-threads:hover { box-shadow: 0 10px 22px -8px rgba(0,0,0,0.4); }

/* ===================================================================
   SIDEBAR FIT — kompres bertahap di layar pendek supaya isi sidebar
   selalu muat tanpa scroll (laptop pendek, jendela ber-zoom, dll).
   =================================================================== */
@media (max-height: 760px) {
  .sidebar-inner { padding: 18px 20px 18px; }
  .brand { margin-bottom: 12px; }
  .avatar-wrap { margin: 0 0 8px; }
  .profile { margin-bottom: 10px; }
  .profile-online { margin-top: 5px; }
  .nav { gap: 0; }
  .nav-link { padding: 8px 16px; }
  .socials { padding-top: 12px; }
}
@media (max-height: 640px) {
  .sidebar-inner { padding: 14px 18px 14px; }
  .brand { margin-bottom: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .avatar-wrap { margin: 0 0 6px; }
  .profile-name { font-size: 19px; }
  .profile-role { font-size: 12px; }
  .profile-online { font-size: 11px; padding: 3px 10px; }
  .nav-link { padding: 7px 14px; font-size: 14px; gap: 11px; }
  .socials { padding-top: 10px; gap: 8px; }
  .socials a { width: 34px; height: 34px; }
}
/* Layar sangat pendek: sembunyikan elemen dekoratif & ketatkan lagi. */
@media (max-height: 560px) {
  .avatar-status, .profile-online { display: none; }
  .nav-link { padding: 6px 14px; }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 38px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border); z-index: 90;
  transition: left .4s cubic-bezier(.4,0,.2,1), background .45s ease, box-shadow .45s ease;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 12px 36px -20px rgba(0,0,0,0.7);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.clock {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel-soft); font-family: var(--font-mono);
}
.clock-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.clock-time { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: 1px; }
.clock-time .sec { color: var(--red); }
.clock-date { font-size: 11px; color: var(--text-dim); letter-spacing: .5px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.hnav-link { color: var(--text-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 9px; transition: all .2s ease; position: relative; }
.hnav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px; }
.hnav-link:hover { color: var(--text); }
.hnav-link.active { color: var(--red); }
.hnav-link.active::after, .hnav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { height: 40px; min-width: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); background: var(--panel-soft); color: var(--text); border-radius: 11px; cursor: none; transition: all .2s ease; }
.icon-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.theme-icon { display: inline-flex; transition: transform .4s ease; }
.theme-toggle:hover .theme-icon { transform: rotate(40deg); }

.lang-switch { display: flex; background: var(--panel-soft); border: 1px solid var(--border-strong); border-radius: 11px; overflow: hidden; }
.lang-btn { padding: 9px 13px; font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--text-dim); text-decoration: none; transition: all .2s ease; }
.lang-btn.active { background: var(--red); color: #fff; }

.hire-btn { padding: 0 22px; height: 42px; display: inline-flex; align-items: center; border: 1.5px solid var(--red); background: transparent; color: var(--red); border-radius: 11px; font-family: var(--font-display); font-weight: 600; font-size: 14px; text-decoration: none; transition: all .25s ease; }
.hire-btn:hover { background: var(--red); color: #fff; box-shadow: 0 10px 26px -8px rgba(225,29,42,0.7); transform: translateY(-2px); }

.hamburger { display: none; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--panel-soft); color: var(--text); cursor: none; }

/* ---------- MAIN ---------- */
.main { margin-left: var(--sidebar-w); padding-top: var(--header-h); transition: margin-left .4s cubic-bezier(.4,0,.2,1); }

.section { padding: 90px 60px; position: relative; }
.kicker { display: inline-block; font-family: var(--font-mono); letter-spacing: 5px; font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.6px; line-height: 1.08; }
.section-sub { color: var(--text-soft); font-size: 16.5px; line-height: 1.6; max-width: 560px; margin-top: 14px; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 54px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

.btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 15px; cursor: none; text-decoration: none; border: none; transition: all .25s ease; }
.btn-primary { background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; box-shadow: 0 14px 30px -10px rgba(225,29,42,0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -10px rgba(225,29,42,0.85); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-soft); transform: translateY(-3px); }
.btn-lg { padding: 18px 38px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; margin-top: 22px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); padding: 60px 60px 40px; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 30px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.lines-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.radar { position: absolute; left: 4%; top: 48%; transform: translateY(-50%); pointer-events: none; z-index: 0; }
.radar span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid var(--radar); border-radius: 50%; animation: ring 6s linear infinite; }
.radar span:nth-child(1){ width:160px;height:160px; }
.radar span:nth-child(2){ width:330px;height:330px; animation-delay:.6s;}
.radar span:nth-child(3){ width:520px;height:520px; animation-delay:1.2s;}
.radar span:nth-child(4){ width:720px;height:720px; animation-delay:1.8s;}
@keyframes ring { 0%{opacity:.55;} 50%{opacity:.12;} 100%{opacity:.55;} }

.hero-content { position: relative; z-index: 2; }
.eyebrow { font-family: var(--font-mono); color: var(--green); font-size: 14px; letter-spacing: 5px; font-weight: 500; margin-bottom: 22px; }
.eb-bracket { opacity: .6; }
.hero-title { font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 74px); font-weight: 800; line-height: 1.04; letter-spacing: -1.5px; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-title .grad { background: linear-gradient(90deg, var(--blue), #7cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 18px; color: var(--text-soft); max-width: 490px; line-height: 1.65; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
/* Guard: tombol hero (termasuk Unduh CV) default selalu terlihat.
   Animasi (anim-cv.js) hanya menggeser posisinya. */
.hero-btns > * { opacity: 1; }

.hero-visual { position: relative; z-index: 2; height: 430px; }
.code-panel { position: absolute; right: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(160deg, #06120a, #03070a); border: 1px solid rgba(52,208,88,0.25); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.code-head { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(52,208,88,0.12); }
.code-head span { width: 11px; height: 11px; border-radius: 50%; background: #233; }
.code-head span:nth-child(1){ background:#ff5f56;} .code-head span:nth-child(2){ background:#ffbd2e;} .code-head span:nth-child(3){ background:#27c93f;}
.code-body { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: rgba(180,200,190,0.55); padding: 18px 18px; white-space: pre; overflow: hidden; }
.c-key { color: #ff79c6; } .c-fn { color: var(--green); } .c-tag { color: var(--blue); }
.big-bracket { position: absolute; right: 14%; top: 46%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 88px; font-weight: 700; color: var(--green); text-shadow: 0 0 30px rgba(52,208,88,0.6); pointer-events: none; }
.skill-tag { position: absolute; padding: 8px 16px; border-radius: 9px; border: 1px solid var(--green); background: rgba(6,18,10,0.88); color: var(--green); font-family: var(--font-display); font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px -6px rgba(52,208,88,0.5); }
.tag-1 { top: -3%; right: 8%; } .tag-2 { top: 16%; right: -4%; } .tag-3 { top: 30%; left: -2%; }
.tag-4 { top: 52%; right: -6%; } .tag-5 { top: 66%; left: 4%; } .tag-6 { top: 80%; right: 6%; }

.scroll-hint { position: absolute; right: 48px; bottom: 28px; left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; z-index: 2; }
.scroll-mouse { width: 22px; height: 36px; border: 2px solid var(--text-dim); border-radius: 12px; position: relative; }
.scroll-mouse span { position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; background: var(--red); border-radius: 3px; transform: translateX(-50%); animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0%{ opacity: 0; top: 6px;} 40%{ opacity: 1;} 80%{ opacity: 0; top: 18px;} 100%{ opacity: 0;} }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 60px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); font-weight: 800; background: linear-gradient(135deg, var(--red-bright), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { color: var(--text-soft); font-size: 14px; margin-top: 8px; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-card { position: relative; aspect-ratio: 4/5; max-width: 360px; border-radius: 24px; background: var(--card-bg); border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; }
.about-card-glow { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 20%, rgba(225,29,42,0.22), transparent 70%); }
.about-photo { width: 78%; }
.about-photo svg { width: 100%; }
/* Foto asli mengisi penuh kartu about (override lebar 78% milik ilustrasi). */
.about-photo:has(.about-photo-img) { width: 100%; height: 100%; }
.about-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-exp { position: absolute; bottom: 18px; right: 18px; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); color: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: 0 14px 30px -10px rgba(225,29,42,0.7); }
.exp-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.exp-text { font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: 1px; }
.about-text p { color: var(--text-soft); font-size: 16.5px; line-height: 1.75; margin-top: 16px; }
.about-punch { color: var(--text) !important; font-weight: 500; }
.about-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; border: 1px solid var(--border-strong); background: var(--panel-soft); font-size: 14px; font-weight: 500; }
.badge svg { color: var(--red); }

/* ---------- SKILLS ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; max-width: 920px; margin: 0 auto; }
.skill-top { display: flex; justify-content: space-between; align-items: baseline; }
.skill-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.skill-pct { font-family: var(--font-mono); color: var(--green); font-size: 14px; }
.skill-cat { color: var(--text-dim); font-size: 12px; margin: 2px 0 10px; letter-spacing: .5px; }
.skill-bar { height: 7px; background: var(--panel-soft); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.skill-fill { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--red), var(--blue)); }

/* ---------- PROJECTS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card.is-hidden { display: none; }
.cards.show-all .card.is-hidden { display: block; }
.card-img { position: relative; z-index: 1; width: 72px; height: 72px; object-fit: contain; transition: transform .35s ease; }
.card:hover .card-img { transform: scale(1.12) rotate(-4deg); }
.card-icon-fallback { position: relative; z-index: 1; color: var(--accent); }
.projects-more { display: flex; justify-content: center; margin-top: 40px; }
.btn-more { cursor: none; }
.btn-more svg { transition: transform .3s ease; }
.btn-more.open svg { transform: rotate(180deg); }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 34px 64px -26px color-mix(in srgb, var(--accent) 50%, transparent); }
.card-thumb { position: relative; height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, #0b1726, #060d16); border-bottom: 1px solid var(--border); color: var(--accent); overflow: hidden; }
.card-thumb-glow { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.card-thumb svg { position: relative; z-index: 1; transition: transform .35s ease; }
.card:hover .card-thumb svg { transform: scale(1.12) rotate(-4deg); }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tags span { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 7px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.card-body p { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(5px); }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { padding: 30px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border); transition: all .3s ease; }
.service:hover { transform: translateY(-8px); border-color: var(--red); }
.service-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(225,29,42,0.12); color: var(--red); margin-bottom: 18px; transition: all .3s ease; overflow: hidden; }
.service-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.service:hover .service-ico { background: var(--red); color: #fff; transform: rotate(-8deg); }
.service h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- PROCESS ---------- */
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding: 28px 24px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border); }
.process-no { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--red); display: block; margin-bottom: 12px; }
.process-step h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.process-step p { color: var(--text-soft); font-size: 14px; line-height: 1.55; }

/* ---------- CTA BANNER ---------- */
.cta-banner { position: relative; margin: 0 60px 0; padding: 70px 40px; border-radius: 28px; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--red-deep), #2a0508 60%, #060708); }
.cta-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(225,29,42,0.5), transparent 70%); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 52px); font-weight: 800; color: #fff; letter-spacing: -.5px; }
.cta-sub { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 540px; line-height: 1.6; }
.cta-note { color: rgba(255,255,255,0.6); font-size: 13.5px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-direct { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact-or { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 16px; transition: color .2s ease; }
.contact-direct a:hover { color: var(--red); }
.contact-direct svg { color: var(--red); }
.contact-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.contact-box label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 16px 0 7px; }
.contact-box label:first-child { margin-top: 0; }
.contact-box input, .contact-box textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--panel-soft); border: 1px solid var(--border-strong); color: var(--text); font-family: var(--font-body); font-size: 14.5px; outline: none; transition: border-color .2s ease; resize: vertical; }
.contact-box input:focus, .contact-box textarea:focus { border-color: var(--red); }
.form-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--green); background: rgba(52,208,88,0.10); border: 1px solid rgba(52,208,88,0.35); opacity: 0; transition: opacity .3s ease; display: none; }
.form-note.show { display: block; opacity: 1; }
.form-note.is-error { color: #ff6b6b; background: rgba(225,29,42,0.10); border-color: rgba(225,29,42,0.4); }

/* ---------- FOOTER ---------- */
.footer { position: relative; margin-left: 0; }
.footer-cta { position: relative; margin: 0 60px; padding: 60px 40px 0; border-radius: 28px 28px 0 0; overflow: hidden; text-align: center; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--border); border-bottom: none; }
.footer-cta-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(225,29,42,0.3), transparent); filter: blur(20px); }
.footer-cta-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 50px; }
.footer-cta-kicker { font-family: var(--font-mono); color: var(--green); font-size: 13px; letter-spacing: 2px; }
.footer-cta-title { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 60px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; max-width: 700px; }
.footer-cta-marquee { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding: 20px 0; }
.marquee-track { display: flex; align-items: center; gap: 30px; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 1px; color: var(--text); opacity: .55; }
.marquee-track .m-dot { color: var(--red); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.footer-body { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px 60px 40px; border-top: 1px solid var(--border); }
.brand-footer { margin-bottom: 18px; }
.footer-tagline { color: var(--text-soft); font-size: 15.5px; line-height: 1.6; max-width: 380px; margin-bottom: 22px; }
.footer-socials { margin-top: 14px; padding-top: 0; justify-content: flex-start; }
/* Ikon sosial footer: kotak rata, SVG benar-benar center, dan warna hover
   per-platform tidak ketiban aturan link footer generik. */
.footer-socials a {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin: 0;
}
.footer-socials a svg { display: block; }
/* Pastikan warna teks/ikon footer-social netral dulu (bukan diwarnai aturan
   .footer-col a), supaya transisi ke warna platform saat hover terlihat. */
.footer-socials a:not(:hover) { color: var(--text-soft); }
.footer-heading { font-family: var(--font-display); font-size: 15px; letter-spacing: 1px; margin-bottom: 18px; text-transform: uppercase; color: var(--text); }
.footer-col a:not(.social) { display: block; color: var(--text-soft); text-decoration: none; font-size: 15px; margin-bottom: 12px; transition: color .2s ease, transform .2s ease; }
.footer-col a:not(.social):hover { color: var(--red); transform: translateX(4px); }
.footer-loc { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; }
.footer-loc svg { color: var(--red); }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 60px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; }

.back-top { position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px; border-radius: 14px; border: none; background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; cursor: none; display: grid; place-items: center; transform: translateY(0) rotate(-90deg); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 80; box-shadow: 0 14px 30px -10px rgba(225,29,42,0.7); }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-5px) rotate(-90deg); }

/* ---------- REVEAL ANIMATIONS (fallback before GSAP) ---------- */
.reveal, .reveal-left, .reveal-right { opacity: 0; }
.no-gsap .reveal, .no-gsap .reveal-left, .no-gsap .reveal-right { opacity: 1; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .header-nav { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: flex; justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .header { left: 0; }
  .main { margin-left: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
  .main, .section, .hero, .stats, .footer { max-width: 100vw; }
  .hamburger { display: grid; }
  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 95; opacity: 0; transition: opacity .3s ease; }
  .overlay.show { display: block; opacity: 1; }
  .clock-date { display: none; }
  .hire-btn { display: none; }
  .section, .hero { padding-left: 24px; padding-right: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 36px 24px; }
  .cta-banner, .footer-cta, .footer-body, .footer-bottom { margin-left: 0; margin-right: 0; }
  .footer-body { grid-template-columns: 1fr; padding: 44px 24px 30px; }
  .footer-bottom { padding: 24px; }
  .cta-banner { margin: 0 16px; }
  .footer-cta { margin: 0 16px; }
  .scroll-hint { right: 24px; left: auto; }
}
@media (max-width: 560px) {
  .skill-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .services-grid, .process-line { grid-template-columns: 1fr; }
  .clock-time { font-size: 15px; }
  .header { padding: 0 16px; }
  .lang-btn { padding: 8px 9px; }
  .marquee-track span { font-size: 17px; }
}

@media (max-height: 720px) {
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
