:root{
  --bg:#0b1220;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.04);
  --line:rgba(232,238,252,.14);
  --text:#e8eefc;
  --muted:rgba(232,238,252,.75);
  --primary:#7c5cff;
  --primary2:#2ee59d;
  --radius:18px;
  --max:1100px;
  --shadow:0 18px 50px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at 80% 25%, rgba(46,229,157,.14), transparent 55%),
    radial-gradient(900px 700px at 45% 95%, rgba(124,92,255,.10), transparent 60%),
    var(--bg);
  min-height:100vh;
}
a{ color:inherit; text-decoration:none; }
.container{ max-width:var(--max); margin:0 auto; padding:22px; }

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom: 1px solid var(--line);

  /* Tambahan shadow */
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.06) inset;
}

.nav-inner{
  max-width:var(--max);
  margin:0 auto;

  /* sebelumnya padding:14px 22px; */
  padding: 18px 28px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 22px; /* biar brand & menu nggak dempet */
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px; }
.dot{
  width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 0 0 6px rgba(124,92,255,.12);
}
.nav-links{
  display:flex;
  gap: 14px;        /* jarak antar menu lebih lega */
  flex-wrap:wrap;
  align-items:center;
}

.nav-links a{
  padding: 12px 14px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  font-weight:800;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.nav-links a:hover{
  color: var(--text);
  border-color: rgba(124,92,255,.35);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.nav-links a:active{
  transform: translateY(0px) scale(0.98); /* efek ditekan */
  background: rgba(124,92,255,.12);
  border-color: rgba(124,92,255,.55);
}
.nav-links a:focus-visible,
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(124,92,255,.25);
}

.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}

.menu-toggle span{
  width:24px;
  height:3px;
  background: var(--text);
  border-radius:99px;
  transition:.3s ease;
}

@media (max-width: 900px){
  .menu-toggle{
    display:flex;
  }

  .nav-links{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background: rgba(11,18,32,.95);
    flex-direction:column;
    padding:18px;
    gap:14px;
    border-bottom:1px solid var(--line);

    max-height:0;
    overflow:hidden;
    transition:.3s ease;
  }

  .nav-links.active{
    max-height:300px;
  }
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.section{ padding:18px 0; }
.section-title{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  margin:12px 0 12px;
}
.section-title h2{ margin:0; font-size:20px; letter-spacing:-.2px; }
.section-title p{ margin:0; color:var(--muted); }

.hero{
  margin-top: 22px;
  padding: 22px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}
.hero-left{ padding: 4px; }
.hero-right{ display:flex; flex-direction:column; gap:14px; }

.badge{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  font-weight:900;
  width:fit-content;
}
.badge i{
  width:9px; height:9px; border-radius:99px;
  background:var(--primary2);
  box-shadow:0 0 0 5px rgba(46,229,157,.12);
  display:inline-block;
}
h1{
  margin:14px 0 10px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height:1.12;
  letter-spacing:-.6px;
}
.grad{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.muted{ color: var(--muted); font-weight:800; }
.lead{
  margin: 0 0 26px;     /* sebelumnya 0 0 18px */
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  font-weight:900;
  transition:.2s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(124,92,255,.45); }
.btn.primary{
  border:1px solid rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,229,157,.75));
  color:#0b1220;
  box-shadow: 0 18px 45px rgba(124,92,255,.18);
}
.hero-actions{ 
  display:flex; 
  gap:18px;          /* lebih lega */
  flex-wrap:wrap; 
  margin-top:22px; /* jarak dari teks */
}

.profile{
  display:flex; gap:14px; align-items:center;
  padding:14px; border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.avatar{
  width:54px; height:54px; border-radius:16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,229,157,.75));
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 35px rgba(0,0,0,.25);
}

.stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.stat{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.stat .num{ font-size:20px; font-weight:950; }
.stat .lbl{ margin-top:6px; color:var(--muted); font-weight:900; font-size:13px; }

.card-mini{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.mini-title{ font-weight:950; margin-bottom:10px; }

.chips{ 
  display:flex; 
  flex-wrap:wrap; 
  gap:14px;        /* jarak horizontal & vertikal */
  margin-top:12px; /* jarak dari elemen atas */
}
.chip{
  padding:9px 11px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:900;
  font-size:13px;
}

.grid{ 
  display:grid; 
  grid-template-columns: repeat(12, 1fr); 
  gap:24px; /* lebih lega */
}

.col-8{ grid-column: span 8; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
.col-12{ grid-column: span 12; }

.box{
  padding:18px;
  border-radius: var(--radius);
  background: var(--card2);
  border:1px solid var(--line);
}
.box-title{ font-weight:950; margin-bottom:10px; }

.project{
  grid-column: span 4;
  padding:18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  transition:.2s ease;
  display:flex; flex-direction:column; gap:12px;
}
.project:hover{ transform: translateY(-2px); border-color: rgba(124,92,255,.35); }
.project-top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.project h3{ margin:0; font-size:16px; letter-spacing:-.2px; }
.project p{ margin:0; color:var(--muted); line-height:1.65; }
.pill{
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid rgba(46,229,157,.35);
  background: rgba(46,229,157,.10);
  white-space:nowrap;
}
.meta{ display:flex; flex-wrap:wrap; gap:8px; }
.kv{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:900;
  font-size:12px;
}
.links{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.link{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight:950;
  font-size:13px;
}
.link:hover{ border-color: rgba(124,92,255,.45); }

.timeline{
  display:flex; flex-direction:column; gap:12px;
}
.t-item{
  padding:18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.t-item .t-top{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.t-item .t-date{ color: var(--muted); font-weight:950; }
.t-item h3{ margin:10px 0 8px; font-size:16px; }
.t-item p{ margin:0; color: var(--muted); line-height:1.7; }

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
  font-size:14px;
}
textarea{ min-height:120px; resize:vertical; }
input:focus, textarea:focus{ border-color: rgba(124,92,255,.55); }
.note{ color: var(--muted); font-size: 13px; line-height: 1.6; }

.footer{
  margin-top:22px;
  padding: 24px 0 40px;
  border-top:1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .col-8,.col-6,.col-4{ grid-column: span 12; }
  .project{ grid-column: span 12; }
}
/* ===== FIX NAV POSITION ===== */
.nav-inner{
  position: relative;
}

/* ===== HAMBURGER BASE ===== */
.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:1001;
}

.menu-toggle span{
  width:26px;
  height:3px;
  background: var(--text);
  border-radius:99px;
  transition:.3s ease;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 900px){
  .menu-toggle{
    display:flex;
  }

  .nav-links{
    position:absolute;
    top:100%;
    left:0;
    width:100%;

    display:flex;
    flex-direction:column;
    align-items:stretch;

    background: rgba(11,18,32,.98);
    padding:0 20px;
    gap:12px;

    border-bottom:1px solid var(--line);

    max-height:0;
    overflow:hidden;
    transition: max-height .3s ease, padding .2s ease;

    z-index:1000;
  }

  .nav-links.active{
    max-height:400px;
    padding:20px;
  }

  .nav-links a{
    width:100%;
    text-align:left;
  }
}
/* ===== HAMBURGER ANIMATION ===== */
.menu-toggle.active span:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}
.list{
  padding-left:18px;
  line-height:1.8;
}

.list li{
  margin-bottom:8px;
  color:#e5e7eb;
}
.achievement{
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.achievement:last-child{
  border-bottom:none;
}

.achievement h4{
  margin:0;
  font-size:16px;
}

.achievement small{
  display:block;
  color:#9ca3af;
  margin:4px 0 6px;
}
.card-img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:12px;
  background:#111827;
}

.achievement p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#e5e7eb;
}
/* ===== GLOBAL CLICK EFFECT ===== */
a, button, .link, .chip, .project, .achievement, .nav-links a {
  transition: 
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

/* Hover = shadow naik */
a:hover,
button:hover,
.link:hover,
.chip:hover,
.project:hover,
.achievement:hover,
.nav-links a:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Klik = efek ditekan */
a:active,
button:active,
.link:active,
.chip:active,
.project:active,
.achievement:active,
.nav-links a:active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: scale(0.97);
}
/* ===== QUICK LINKS EFFECT ===== */
.quick-links a,
#quickTags .chip,
#socialLinks .chip {
  cursor: pointer;
  transition: 
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

/* Hover */
.quick-links a:hover,
#quickTags .chip:hover,
#socialLinks .chip:hover {
  box-shadow: 0 0 12px rgba(0, 255, 180, 0.6),
              0 0 25px rgba(0, 255, 180, 0.3);
  transform: translateY(-2px);
}

/* Klik */
.quick-links a:active,
#quickTags .chip:active,
#socialLinks .chip:active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
}
.research-links {
  margin-top: 12px;
}

.research-links .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 255, 180, 0.08);
  border: 1px solid rgba(0, 255, 180, 0.3);
  color: #6ee7b7;
  font-weight: 500;
}
