/* =========================================================
   STYLE PORTOFOLIO
   Ganti warna utama di bagian :root (--blue = warna aksen).
   light-dark(warnaTerang, warnaGelap) -> otomatis ikut mode gelap perangkat.
   ========================================================= */
:root{color-scheme:light dark;
  --bg:light-dark(#f6f8fc,#0c111d);--surface:light-dark(#ffffff,#141b2c);--alt:light-dark(#ffffff,#10172a);
  --ink:light-dark(#11141c,#eef1f8);--muted:light-dark(#646b7b,#9aa3b8);--line:light-dark(#e7ebf3,#232c42);
  --blue:light-dark(#2f5bea,#6d8cff);--blue-d:light-dark(#2448c4,#8aa3ff);--soft:light-dark(#dfe7ff,#1b2646);--soft2:light-dark(#b8caff,#2a3a6b);
  --fig:light-dark(#232838,#3a4361);--fig2:light-dark(#343b52,#4d5778);
  --shadow:light-dark(0 18px 40px -18px rgba(30,50,110,.25),0 18px 40px -18px rgba(0,0,0,.6));
  --foot:#0f1424}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 Poppins,system-ui,sans-serif;overflow-x:clip}
a{color:inherit;text-decoration:none}
img,svg{display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 max(5vw,18px)}
section{padding:clamp(64px,9vw,110px) 0}
.alt{background:var(--alt)}
#project{overflow:hidden}
.eyebrow{font-size:11px;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:var(--blue);margin:0 0 12px}
h1,h2,h3{margin:0;line-height:1.15;text-wrap:balance}
h2{font-size:clamp(28px,3.6vw,40px);font-weight:700}
.hl{color:var(--blue)}
.center{text-align:center}
.sub{color:var(--muted);max-width:560px;margin:12px auto 0;font-size:15px}
.btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 24px;border-radius:999px;font:600 14px Poppins,sans-serif;border:1px solid transparent;cursor:pointer;transition:.25s}
.btn svg{width:16px;height:16px}
.btn-p{background:var(--blue);color:#fff;box-shadow:0 12px 24px -10px var(--blue)}
.btn-p:hover{background:var(--blue-d);transform:translateY(-2px)}
.btn-o{background:var(--surface);border-color:var(--line)}
.btn-o:hover{border-color:var(--blue);color:var(--blue)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* NAV */
header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(12px);transition:box-shadow .3s}
header.scrolled{box-shadow:0 1px 0 var(--line),0 8px 24px -16px rgba(0,0,0,.2)}
.nav{display:flex;align-items:center;justify-content:space-between;height:70px}
.logo{font-weight:700;font-size:20px}
.logo span{color:var(--blue)}
.menu{display:flex;gap:30px;list-style:none;margin:0;padding:0}
.menu a{position:relative;font-size:14px;font-weight:500;color:var(--muted);padding:8px 0;transition:color .2s}
.menu a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--blue);transform:scaleX(0);transition:transform .3s}
.menu a:hover,.menu a.active{color:var(--blue)}
.menu a.active::after{transform:scaleX(1)}
.burger{display:none;width:44px;height:44px;border:0;background:none;color:var(--ink);cursor:pointer}
.burger svg{width:24px;height:24px;margin:auto}

/* HERO */
.hero{padding:0;position:relative;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;min-height:min(calc(100vh - 70px),760px);gap:20px}
.hero h1{font-size:clamp(36px,5.2vw,58px);font-weight:700;line-height:1.12}
.typed{display:block;min-height:1.15em;white-space:nowrap}
.caret{display:inline-block;width:3px;height:.9em;background:var(--ink);margin-left:4px;vertical-align:-.08em;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.hero p.lead{color:var(--muted);max-width:420px;margin:22px 0 30px;font-size:15px}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.socials{display:flex;gap:6px;margin-top:30px}
.socials a{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;color:var(--ink);transition:.2s}
.socials a:hover{background:var(--soft);color:var(--blue)}
.socials svg{width:17px;height:17px}
.scroll-down{position:absolute;left:max(5vw,18px);bottom:26px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;letter-spacing:.25em;color:var(--blue)}
.scroll-down svg{width:14px;height:14px;animation:bob 1.8s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(4px)}}
.art{position:relative;height:min(calc(100vh - 70px),760px);min-height:460px}
.circle{position:absolute;border-radius:50%}
.c1{width:78%;aspect-ratio:1;right:-6%;top:20%;background:var(--soft)}
.c2{width:42%;aspect-ratio:1;left:0;bottom:-12%;background:var(--soft2)}
.person{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:88%;width:auto;max-width:none;object-fit:contain;filter:drop-shadow(0 20px 30px rgba(20,30,60,.18))}
.note{position:absolute;right:4%;top:15%;font:700 clamp(22px,2.4vw,30px)/1 Caveat,cursive;color:var(--blue);text-align:center;transform:rotate(-6deg)}
.note svg{width:46px;margin:6px 0 0 -6px;stroke:var(--blue)}
.ph-tag{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);background:var(--surface);color:var(--muted);font-size:12px;padding:6px 14px;border-radius:999px;box-shadow:var(--shadow);white-space:nowrap}

/* ABOUT */
.about{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(32px,6vw,80px);align-items:center}
.photo{position:relative;aspect-ratio:4/4.3;border-radius:28px;background:linear-gradient(160deg,var(--soft),var(--surface));overflow:hidden;box-shadow:var(--shadow)}
.photo img{width:100%;height:100%;object-fit:cover}
.photo svg{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:92%}
.about p:not(.eyebrow){color:var(--muted);font-size:15px;margin:18px 0 26px}
.info{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin-bottom:30px}
.info div{display:flex;gap:14px;align-items:flex-start}
.tile{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--soft);color:var(--blue)}
.tile svg{width:19px;height:19px}
.info b{display:block;font-size:14px;font-weight:600}
.info small{display:block;font-size:13px;color:var(--muted);line-height:1.45}

/* SKILL */
.skills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:48px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow);transition:transform .3s}
.card:hover{transform:translateY(-4px)}
.sk-top{display:flex;align-items:center;gap:12px;font-weight:600;font-size:15px}
.badge{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font:700 12px Poppins,sans-serif;color:#fff}
.sk-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:18px 0 8px}
.sk-row b{color:var(--ink);font-weight:600}
.bar{height:6px;border-radius:6px;background:var(--line);overflow:hidden}
.bar i{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,var(--blue),#6f93ff);transition:width 1.4s cubic-bezier(.2,.8,.2,1)}
.card p{font-size:13px;color:var(--muted);margin:14px 0 0;line-height:1.55}
.tools{margin-top:44px}
.tools h3{font-size:16px;font-weight:600;margin-bottom:16px}
.chips{display:flex;flex-wrap:wrap;gap:12px}
.chip{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);padding:10px 16px;border-radius:999px;font-size:13px;font-weight:500;box-shadow:var(--shadow)}
.chip i{width:10px;height:10px;border-radius:3px}

/* PROJECT CAROUSEL */
.stage{position:relative;height:540px;margin-top:40px;perspective:1200px;touch-action:pan-y}
.pcard{position:absolute;left:50%;top:50%;width:300px;margin-left:-150px;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .6s,filter .6s;cursor:pointer;user-select:none}
.pcard .thumb{height:180px;overflow:hidden}
.pcard .thumb svg,.pcard .thumb img{width:100%;height:100%;object-fit:cover}
.pbody{padding:18px 20px 20px;transition:opacity .4s}
.pbody h3{font-size:16px;font-weight:600}
.pbody p{font-size:13px;color:var(--muted);margin:8px 0 14px;line-height:1.55}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.tags span{font-size:11px;font-weight:600;color:var(--blue);background:var(--soft);padding:4px 10px;border-radius:999px}
.plinks{display:flex;gap:18px;font-size:13px;font-weight:600;color:var(--blue)}
.plinks a:hover{text-decoration:underline}
.pcard.is-center{cursor:default;box-shadow:0 30px 60px -20px rgba(30,50,120,.35)}
.pcard:not(.is-center) .pbody{opacity:.45}
.arrow{position:absolute;top:50%;z-index:30;width:46px;height:46px;margin-top:-23px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);transition:.2s}
.arrow:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
.arrow svg{width:18px;height:18px}
.prev{left:0}.next{right:0}
.dots{display:flex;justify-content:center;gap:8px;margin-top:8px}
.dots button{width:8px;height:8px;padding:0;border:0;border-radius:8px;background:var(--line);cursor:pointer;transition:.3s}
.dots button.on{width:26px;background:var(--blue)}

/* EXPERIENCE */
.timeline{position:relative;max-width:760px;margin:52px auto 0;padding-left:44px}
.timeline::before{content:"";position:absolute;left:10px;top:6px;bottom:6px;width:2px;background:linear-gradient(var(--blue),var(--soft2))}
.tl{position:relative;margin-bottom:22px}
.tl::before{content:"";position:absolute;left:-40px;top:28px;width:14px;height:14px;border-radius:50%;background:var(--surface);border:3px solid var(--blue);box-shadow:0 0 0 5px var(--soft)}
.tl .card{padding:22px 26px}
.date{font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--blue);text-transform:uppercase}
.tl h3{font-size:16px;font-weight:600;margin:6px 0 6px}
.tl p{margin:0}

/* CONTACT */
.contact{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(32px,6vw,72px);align-items:start}
.contact h2{margin-bottom:16px}
.contact>div>p:not(.eyebrow){color:var(--muted);font-size:15px;max-width:400px;margin:0 0 30px}
.clist{display:grid;gap:18px}
.clist div{display:flex;gap:14px;align-items:center}
.clist b{display:block;font-size:14px;font-weight:600}
.clist small{font-size:13px;color:var(--muted)}
form.card{padding:clamp(22px,3vw,34px)}
label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
input,textarea{width:100%;font:16px Poppins,sans-serif;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:18px;transition:border-color .2s,box-shadow .2s}
input:focus,textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 4px var(--soft)}
textarea{min-height:130px;resize:vertical}
.err{border-color:#e5484d}

footer{background:var(--foot);color:#aab2c5;padding:28px 0}
footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px}
footer .socials{margin:0}
footer .socials a{color:#cfd5e3}
footer .socials a:hover{background:#1e2640;color:#fff}

.toast{visibility:hidden;position:fixed;left:50%;bottom:24px;transform:translate(-50%,140%);background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:12px;font-size:14px;z-index:99;transition:transform .35s;max-width:calc(100vw - 32px);text-align:center}
.toast.show{visibility:visible;transform:translate(-50%,0)}

.rv{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s ease}
.rv.in{opacity:1;transform:none}

@media(max-width:960px){
  .skills{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info{grid-template-columns:1fr}
}
@media(max-width:820px){
  .menu{position:fixed;top:70px;left:0;right:0;flex-direction:column;gap:0;background:var(--surface);padding:8px max(5vw,18px) 18px;box-shadow:0 20px 30px -20px rgba(0,0,0,.3);transform:translateY(-130%);transition:transform .35s;z-index:-1}
  .menu.open{transform:none}
  .menu a{display:block;padding:14px 0}
  .menu a::after{display:none}
  .burger{display:grid}
  .hero .wrap{grid-template-columns:1fr;min-height:auto;padding-top:40px}
  .art{height:440px;min-height:0;order:-1}
  .c2{bottom:0;width:36%}
  .scroll-down{display:none}
  .about,.contact{grid-template-columns:1fr}
  .photo{max-width:420px;width:100%;margin:0 auto}
}
@media(max-width:600px){
  .skills{grid-template-columns:1fr}
  .art{height:360px}
  .stage{height:520px}
  .pcard{width:260px;margin-left:-130px}
  .arrow{top:auto;bottom:-6px}
  .prev{left:calc(50% - 56px)}.next{right:calc(50% - 56px)}
  .dots{margin-top:28px}
  .timeline{padding-left:34px}
  .tl::before{left:-30px}
  .timeline::before{left:6px}
  footer .wrap{justify-content:center;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .rv{opacity:1;transform:none}
}
