:root {
  --bg: #020317;
  --muted: #98a6c6;
  --electric: #007BFF;
  --accent: #00E0FF;
  --glass: rgba(255, 255, 255, 0.03);
  --max: 1200px;
  --radius: 14px;
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.75);
  --text: #e9f6ff;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CANVAS */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* CONTAINER */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* HEADER */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 18px;
  z-index: 60;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
}
.brand {
  color: var(--electric);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand .dot { color: var(--accent); }
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all .18s;
}
.nav a:hover { color: #fff; transform: translateY(-3px); }
.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--electric), var(--accent));
  padding: 8px 12px;
  border-radius: 10px;
}
.menu-toggle { display: none; }

/* HERO */
.hero {
  padding: 92px 0 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap; /* biar gak nabrak */
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.profile-wrap {
  width: 360px;
  height: 360px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.profile-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transform: translateY(6px);
  transition: transform .8s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 20px 60px rgba(2,10,30,0.6);
}
.profile-wrap img.loaded { transform: translateY(0); }

/* HERO TEXT */
.eyebrow { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.hero-title {
  font-family: "Exo 2", sans-serif;
  font-size: 2.4rem;
  line-height: 1.02;
  margin: 0;
}
.accent {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  -webkit-background-clip: text;
  color: transparent;
}
.typewriter { color: var(--accent); font-weight: 700; margin: 10px 0; min-height: 1.4rem; }
.hero-lead {
  color: rgba(230,245,255,0.92);
  max-width: 58ch;
  margin-top: 12px;
}
.hero-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: linear-gradient(90deg, var(--electric), var(--accent));
  color: #021026;
  transition: transform .22s, box-shadow .22s;
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--muted);
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0,123,255,0.55), 0 0 80px rgba(0,224,255,0.25);
  transform: translateY(-4px);
}

/* SECTIONS */
.section { padding: 72px 0; position: relative; z-index: 2; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent); }
h2 { font-size: 1.3rem; margin-bottom: 6px; color: var(--accent); }
.muted { color: var(--muted); margin-bottom: 12px; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.info-card {
  background: var(--glass);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  color: var(--muted);
}
.info-card h3 { color: var(--accent); margin-bottom: 8px; }

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.skill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,224,255,0.04), rgba(0,123,255,0.02));
  font-weight: 700;
  color: var(--text);
  transition: transform .22s, box-shadow .22s;
}
.skill i { font-size: 22px; }
.skill:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(0,150,255,0.08);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 18px;
  margin-top: 12px;
  align-items: start;
}
.project { perspective: 1200px; }
.project-inner {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s;
  transform-origin: center;
  will-change: transform;
  min-height: 100%;
}
.project:hover .project-inner {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 40px 120px rgba(0,0,0,0.75);
}
.project-media {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.project-media.qr-media {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,160,255,0.08), rgba(0,50,120,0.02));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}
.qr-svg {
  width: 72%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 25px rgba(0,224,255,0.12));
}
.project-body { padding: 18px; margin-top: auto; }
.project-body h3 { margin-bottom: 8px; color: var(--accent); }
.project-body p { color: var(--muted); }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--electric), var(--accent));
  color: #021026;
  text-decoration: none;
  font-weight: 700;
}

/* FOOTER */
.footer { padding: 36px 0; text-align: center; color: var(--muted); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.reveal.show { opacity: 1; transform: none; }
.fade-item { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.25,.9,.3,1); }
.fade-item.show { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 680px) {
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero-grid {
    flex-direction: column;
    gap: 20px;
  }

  .profile-wrap {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
  }

  .hero-title { font-size: 1.6rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
