:root{
  --bgA:#04112d;
  --bgB:#03103a;
  --bgC:#636b3b;

  --nav:#080829;
  --card: rgba(0,0,0,.14);
  --border: rgba(255,255,255,.12);

  --text:#ffffff;
  --muted: rgba(255,255,255,.78);
  --accent: rgba(255, 230, 90, 0.95);
  --glow: rgba(120, 80, 255, 0.40);
}

body.light{
  --bgA:#f6f8ff;
  --bgB:#e9eeff;
  --bgC:#f4fff1;

  --nav:#ffffff;
  --card: rgba(255,255,255,.70);
  --border: rgba(10,10,20,.12);

  --text:#101225;
  --muted: rgba(16,18,37,.72);
  --accent: rgba(120, 80, 255, 1);
  --glow: rgba(120, 80, 255, 0.22);
}

*{ box-sizing:border-box }
html{ scroll-behavior:smooth }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 18% 55%, rgba(0,120,255,.25), transparent 55%),
    radial-gradient(900px 520px at 82% 52%, rgba(125,255,120,.16), transparent 58%),
    linear-gradient(100deg, var(--bgA), var(--bgB), var(--bgC));
}

.container{ max-width:1100px; margin:0 auto; padding:0 22px; }
.narrow{ max-width:860px; }
.section{ padding:70px 0; }

/* NAV */
.nav{
  position: sticky; top:0; z-index:50;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--nav) 96%, transparent),
    color-mix(in srgb, var(--nav) 85%, transparent)
  );
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav__inner{
  height:66px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{ color:var(--text); text-decoration:none; font-weight:900; }
.nav__links{ display:flex; gap:18px; }
.nav__links a{ color:var(--text); text-decoration:none; font-weight:700; opacity:.92; }
.nav__links a:hover{ opacity:1; text-decoration:underline; text-underline-offset:6px; }

.themeBtn{
  width:42px; height:42px; border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color:var(--text);
  display:grid; place-items:center;
  cursor:pointer;
}
.iconSun{ display:none; }
body.light .iconSun{ display:block; }
body.light .iconMoon{ display:none; }

/* HERO */
.hero{
  padding-top:40px;
  position: relative;
  overflow: hidden;
}
.hero__hello{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  opacity: 1;
}

/* blobs */
.heroBlobs{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;

  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}

.blob{
  position:absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(52px);
  opacity: .22;
  transform: translate3d(0,0,0);
}

.b1{
  left: -180px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%,
    rgba(120, 80, 255, .9),
    rgba(120, 80, 255, 0) 60%);
  animation: blobMove1 10s ease-in-out infinite;
}

.b2{
  right: -220px;
  top: 40px;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 230, 90, .85),
    rgba(255, 230, 90, 0) 60%);
  animation: blobMove2 12s ease-in-out infinite;
}

/* b3 dimatiin */
.b3{ display:none; }

@keyframes blobMove1{
  0%,100% { transform: translate(-10px, 0) scale(1); }
  50%     { transform: translate(80px, 40px) scale(1.08); }
}
@keyframes blobMove2{
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(-90px, 60px) scale(1.06); }
}

body.light .blob{
  opacity: .18;
  filter: blur(58px);
}

/* hero grid */
.hero__inner{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 1.25fr 0.75fr; /* FIX typo */
  gap:16px;
  align-items:start;
}

.hero__left{ animation: heroIn .8s ease both; }
.hero__right{ animation: heroIn .9s ease both; justify-self:end; align-self:start; }

@keyframes heroIn{
  from { opacity:0; transform: translateY(14px); }
  to   { opacity:1; transform: translateY(0); }
}

/* (kalau kamu pakai Hi! Saya sebaris) */
.heroTop{
  display:flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 12px;
}
.heroHi{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  opacity: 1 !important;
}
.heroSaya{ 
  font-size: 22px;
  font-weight: 900; 
  letter-spacing: .2px;
}

.hero__title{
  margin:0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height:1.05;
  font-weight:900;
}
.accent{ color: var(--accent); }

.hero__role{
  margin:0 0 14px;
  font-weight:800;
  font-size:22px;
}
.hero__desc{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.7;
  max-width:52ch;
}

.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:999px;
  text-decoration:none; font-weight:800;
  border:1px solid var(--border);
}
.btn--primary{
  background: color-mix(in srgb, var(--accent) 88%, transparent);
  color: color-mix(in srgb, var(--text) 92%, #000 8%);
}
.btn--ghost{
  background: color-mix(in srgb, var(--card) 60%, transparent);
  color: var(--text);
}

/* foto (tanpa kotak garis) */
.photoCard{
  border-radius:26px;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  display:flex;
  justify-content:center;
  align-items:center;
  position: relative;
  transition: transform .2s ease;
}
.photoCard:hover{ transform: translateY(-4px); }

.photoCard::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 30%,
    color-mix(in srgb, var(--glow) 35%, transparent),
    transparent 60%);
  filter: blur(18px);
  opacity: .55;
  z-index: -1;
  animation: pulseGlow 3.6s ease-in-out infinite;
}

@keyframes pulseGlow{
  0%,100% { opacity:.45; transform: scale(1); }
  50%     { opacity:.75; transform: scale(1.03); }
}

.float{ animation: floaty 4.8s ease-in-out infinite; }
@keyframes floaty{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

.photo{
  width:min(360px, 100%);
  border-radius:26px;
  border:none;
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
  display:block;
}

.photoPlaceholder{ display:none; color:var(--muted); font-weight:700; text-align:center; }
.photoCard--placeholder .photoPlaceholder{ display:block; }

/* cursor */
.cursor{ display:inline-block; margin-left:6px; animation: blink .8s infinite; }
@keyframes blink{ 0%,50%{opacity:1} 51%,100%{opacity:0} }

/* Titles */
.title{
  margin:0 0 10px;
  text-align:center;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight:900;
}
.subtitle{
  margin:0 0 22px;
  text-align:center;
  color:var(--muted);
  font-weight:700;
}
.text{ margin:0 0 14px; color:var(--muted); line-height:1.75; font-weight:600; }

/* Skills */
.skillsGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:18px;
}
.skillCard{
  border-radius:16px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  padding:16px;
  text-align:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transition: transform .18s ease;
}
.skillCard:hover{ transform: translateY(-3px); }
.skillLogo{
  width:54px; 
  height:54px; 
  margin:0 auto 10px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--glow) 30%, transparent);
}
.skillLogo img{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display:block;
}
.skillName{ font-weight:900; }
.skillDesc{ color:var(--muted); font-weight:700; font-size:13px; margin-top:4px; }

/* Project slider */
.projHead{ display:flex; justify-content:space-between; align-items:flex-end; gap:14px; }
.projNav{ display:flex; gap:10px; }
.iconBtn{
  width:42px; height:42px; border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color:var(--text);
  cursor:pointer;
  font-size:22px;
  display:grid; place-items:center;
}
.slider{
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  margin-top:14px;
}
.slides{ display:flex; transition: transform .35s ease; }
.pCard{
  min-width:100%;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  padding:16px;
}
.pImg{
  width:100%;
  border-radius:16px;
  border:1px solid var(--border);
  object-fit:cover;
  aspect-ratio: 4/3;
}
.pTitle{ margin:0 0 8px; font-weight:900; }
.pText{ margin:0 0 10px; color:var(--muted); line-height:1.6; font-weight:650; }
.pMeta{ margin:0 0 12px; color:var(--muted); font-weight:800; font-size:13px; }
.pLinks{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 75%, transparent);
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.dots{ display:flex; justify-content:center; gap:8px; margin-top:12px; }
.dot{
  width:10px; height:10px; border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  cursor:pointer;
}
.dots{ min-height: 18px; }
.dot{ opacity: .9; }
.dot.active{ background: var(--accent); border-color:transparent; }

/* Timeline */
.timeline{ position:relative; margin-top:26px; padding-left:18px; }
.timeline::before{
  content:"";
  position:absolute; left:9px; top:0; bottom:0;
  width:2px;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
}
.tItem{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  padding:18px 0 18px 26px;
}
.tDot{
  position:absolute; left:1px; top:28px;
  width:18px; height:18px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}
.tLeft{
  border-radius:16px; border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding:16px;
}
.tOrg{ margin:0 0 6px; font-weight:900; }
.tMeta{ margin:0 0 10px; color:var(--muted); font-weight:700; font-size:13px; }
.tList{ margin:0; padding-left:18px; color:var(--muted); line-height:1.6; font-weight:650; }
.tRight{ display:flex; align-items:center; justify-content:center; }
.tImg{
  width:100%;
  max-width:360px;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  object-fit:cover;
  aspect-ratio: 4/3;
}

/* ===== Hover Animations: Pengalaman ===== */

/* card teks pengalaman */
.tLeft{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tLeft:hover{
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

/* wrapper gambar */
.tRight{
  transition: transform .22s ease;
}

/* gambar pengalaman */
.tImg{
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease, border-color .25s ease;
  will-change: transform;
}

.tRight:hover .tImg{
  transform: scale(1.04);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
  filter: saturate(1.06) contrast(1.03);
}


/* Contact */
.contactRow{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.social{
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  display:grid;
  place-items:center;
  text-decoration:none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.social img{
  width:26px;
  height:26px;
  object-fit:contain;
  display:block;
}

body:not(.light) .social img{
  filter: invert(1);
}

.social i{
  font-size: 24px;
  color: var(--text);
}

.social:hover{
  transform: translateY(-4px) scale(1.05);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* dark mode: paksa icon jadi putih */
body:not(.light) .social img{
  filter: brightness(0) invert(1);
}

.social:hover{
  transform: translateY(-4px) scale(1.05);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* animasi hover */
.social{
  transition: transform .2s ease, background .2s ease;
}

.social:hover{
  transform: translateY(-4px) scale(1.05);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}


/* Hover animation */
.social:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Light mode */
body.light .social img {
  filter: none;
}

.footer{ padding:48px 0 18px; }
.bigName{
  font-size: clamp(44px, 9vw, 92px);
  font-weight:900;
  letter-spacing:3px;
  opacity:.22;
  text-align:center;
}
.footNote{ text-align:center; color:var(--muted); font-weight:700; margin-top:10px; }

/* Reveal */
.reveal{ opacity:0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show{ opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width: 920px){
  .nav__links{ display:none; }
  .skillsGrid{ grid-template-columns: repeat(2, 1fr); }
  .tItem{ grid-template-columns: 1fr; }
  .pCard{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .hero__inner{ grid-template-columns: 1fr; }
  .blob{ width: 340px; height: 340px; opacity: .18; }
}

@media (max-width: 520px){
  .skillsGrid{ grid-template-columns: 1fr; }
}