:root {
  color-scheme: dark;

  /* Surface */
  --bg: #0a0a0a;
  --bg-soft: #0f0f0f;
  --surface: #111;
  --surface-2: #1a1a1a;

  /* Borders */
  --border: #1e1e1e;
  --border-strong: #222;
  --border-hover: #444;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #ccc;
  --text-muted: #aaa;
  --text-dim: #888;
  --text-shade: #666;
  --text-sub: #555;
  --text-faint: #444;
  --text-very-faint: #3a3a3a;
  --text-light: #777;

  /* Navbar */
  --nav-bg: rgba(0, 0, 0, 0.4);
  --nav-link: #aaa;
  --nav-hover-line: #ffffff;

  /* Buttons */
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --btn-primary-hover-bg: #e0e0e0;
  --btn-secondary-border: rgba(255, 255, 255, 0.25);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-hover-border: rgba(255, 255, 255, 0.5);

  /* Misc */
  --skill-bg: rgba(255, 255, 255, 0.05);
  --shadow: rgba(0, 0, 0, 0.3);
  --bgtext-fill: rgba(255, 255, 255, 0.03);
  --bgtext-stroke: rgba(255, 255, 255, 0.112);
  --hover-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  color-scheme: light;

  /* Surface */
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f7;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-hover: #94a3b8;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-shade: #64748b;
  --text-sub: #64748b;
  --text-faint: #64748b;
  --text-very-faint: #64748b;
  --text-light: #64748b;

  /* Navbar */
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-link: #475569;
  --nav-hover-line: #0f172a;

  /* Buttons */
  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  --btn-primary-hover-bg: #1e293b;
  --btn-secondary-border: rgba(15, 23, 42, 0.2);
  --btn-secondary-hover-bg: rgba(15, 23, 42, 0.06);
  --btn-secondary-hover-border: rgba(15, 23, 42, 0.35);

  /* Misc */
  --skill-bg: rgba(15, 23, 42, 0.05);
  --shadow: rgba(15, 23, 42, 0.18);
  --bgtext-fill: rgba(255, 255, 255, 0.4);
  --bgtext-stroke: rgba(15, 23, 42, 0.12);
  --hover-bg: rgba(15, 23, 42, 0.06);
}

* {
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Highlight object on hover */
.project-card:hover,
.connect-btn:hover {
  color: var(--text-primary);
  background-color: var(--hover-bg);
  transition: 0.2s;
}

/* ====== THEME TOGGLE ====== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.18);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* NAVBAR */
.navbar {
  height: 80px;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.5);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #4cc9f0, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-link);
  font-size: 14px;
  position: relative;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--nav-hover-line);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: 0.3s;
}

/* ====== KEYFRAMES ====== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clipReveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(16px); }
  to   { clip-path: inset(0 0 0% 0);   opacity: 1; transform: translateY(0); }
}

@keyframes iconPop {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes avatarReveal {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* ====== FADE IN UMUM (untuk hero-right, bg-text) ====== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.3s; }
.fade-in:nth-child(2) { animation-delay: 0.5s; }
.fade-in:nth-child(3) { animation-delay: 0.7s; }

.hero-content .bg-text { animation-delay: 0.9s; }

/* ====== EYEBROW ====== */
.hero-eyebrow {
  display: inline-block;
  opacity: 0;
  animation: clipReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* ====== HERO TITLE (tiap span) ====== */
.hero-title .title-main {
  display: block;
  opacity: 0;
  animation: clipReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.hero-title .title-sub {
  display: block;
  opacity: 0;
  animation: clipReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

/* ====== HERO TOOLS — icons muncul satu per satu ====== */
.hero-tools img {
  opacity: 0;
  animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

/* ====== HERO AVATAR ====== */
.hero-avatar {
  opacity: 0;
  transform: scale(0.85) translateY(24px);
  filter: blur(6px);
  animation: avatarReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
  display: block;
}

/* ====== SPOTLIGHT ====== */
.hero-right {
  position: relative;
  cursor: none;
}

/* Overlay gelap di atas gambar */
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.011);
  pointer-events: none;
  z-index: 3;
}

/* Animasi hover pada gambar */
.hero-right:hover .hero-avatar {
  transform: scale(1.03) translateY(-6px);
  filter: brightness(0.6);
}

.avatar-wrapper {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 30px;
  overflow: hidden;
  display: inline-block;
}

.hero-right:hover .avatar-wrapper {
  transform: scale(1.03) translateY(-6px);
}

.avatar-spotlight {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.2) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  z-index: 10;
  mix-blend-mode: screen;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.title-main {
  animation-delay: 0.3s;
}

.title-sub {
  animation-delay: 0.5s;
}

/* ====== HERO ROLE (typewriter) ====== */
.hero-role {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeUp 0.6s ease 1.25s forwards;
}

.hero-role-label {
  font-weight: 600;
  white-space: nowrap;
}

.hero-role-type {
  color: #4cc9f0;
  font-weight: 800;
  white-space: nowrap;
}

.tw-caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 2px;
  background: #4cc9f0;
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

/* ====== HERO ORB (ambient glow) ====== */
.hero-orb {
  position: absolute;
  inset: -12px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 25% 20%, rgba(76, 201, 240, 0.5), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(14, 165, 233, 0.45), transparent 60%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ====== HERO ORBIT (rotating dashed ring + comet) ====== */
.hero-orbit {
  position: absolute;
  inset: -20px;
  border-radius: 46px;
  border: 2px dashed rgba(76, 201, 240, 0.35);
  z-index: 0;
  pointer-events: none;
  animation: orbitSpin 20s linear infinite;
}

.hero-orbit::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #4cc9f0;
  box-shadow: 0 0 14px 4px rgba(76, 201, 240, 0.75);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* ====== HERO FLOATING BADGES ====== */
.hero-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 10px 24px var(--shadow);
  pointer-events: none;
  white-space: nowrap;
  animation: floatBadge 5s ease-in-out infinite;
}

.hero-float svg {
  color: #4cc9f0;
  flex-shrink: 0;
}

.float-a { top: 4%; right: -26px; animation-delay: 0.2s; }
.float-b { top: 50%; left: -58px; animation-delay: 1s; }
.float-c { bottom: 6%; right: -6px; animation-delay: 1.8s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ====== HERO GRID OVERLAY ====== */
.hero-grid {
  position: absolute;
  inset: 8% 0 0 0;
  background-image:
    linear-gradient(var(--border-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-strong) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 7s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}

/* ====== HERO PARTICLES ====== */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat var(--d, 6s) ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, var(--dy, 30px)) scale(1.4); }
}

/* ====== SCROLL HINT ====== */
.scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-hint span {
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-hover);
  border-radius: 14px;
  position: relative;
}

.scroll-hint span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: #4cc9f0;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Shine pada tombol */
.buttons .btn {
  position: relative;
  overflow: hidden;
}

.buttons .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.buttons .btn:hover::after {
  animation: btnShine 0.9s ease forwards;
}

@keyframes btnShine {
  to { left: 160%; }
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-left, .hero-right, .bg-text { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-title .title-main, .hero-title .title-sub,
  .hero-tools img, .hero-avatar, .hero-role, .fade-in, h1 span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* HERO */
.container {
  padding-top: 80px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;   /* center horizontal */
  align-items: flex-start;       /* center vertical */
  text-align: left;        /* biar teks ikut center */
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  position: relative;
  flex-direction: column;    /* biar turun ke bawah (bukan ke samping) */
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
}

.hero-left {
  margin-top: 40px;
  max-width: 600px;
  padding-top: 5%;
  z-index: 2;
}

.hero-right {
  margin-top: 50px;
  margin-left: 100px;
  transform: none;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px var(--shadow);
  backdrop-filter: blur(6px);
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4cc9f0;
  box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.55);
  animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(76, 201, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
}

h1 {
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* ukuran disamain */
.hero-tools img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-tools img.icon-market {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translateY(-3px);
}

.hero-title {
  font-size: clamp(24px, 4vw, 45px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.title-main {
  display: block;
}

.title-sub {
  display: block;
}

.hero-avatar {
  width: 400px;
  height: 530px;
  border-radius: 30px;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(90deg, #4cc9f0, #67e8f9, #0ea5e9, #4cc9f0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 5s linear infinite;
}

@keyframes textShine {
  to { background-position: 200% center; }
}

.bg-text {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--bgtext-fill);
  pointer-events: none;
  user-select: none;
}

.hero-left p {
  text-align: justify;
  max-width: 560px;
}

p {
  margin-top: 24px;
  color: var(--text-secondary);
  max-width: 900px;
  font-size: 15px;
  line-height: 1.6;
}

.buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: left;
  align-items: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
}

.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

/* Tambah class baru untuk secondary */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--btn-secondary-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--btn-secondary-hover-bg);
  border-color: var(--btn-secondary-hover-border);
}

/* ABOUT SECTION SPLIT */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 150px 10%;
  min-height: 100vh;
  position: relative;
  margin-top: -40px;
}

/* LEFT TEXT */
.about-text {
  flex: 2;
  max-width: 600px;
  opacity: 0;
  animation: slideLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.about-text p {
  margin-bottom: 1.7rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 17px;
  text-align: justify;
}
.about-title {
  font-size: 40px;
  line-height: 1.3;
}
.gradient-text {
  background: linear-gradient(90deg, #4cc9f0, #67e8f9, #0ea5e9, #4cc9f0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  animation: textShine 5s linear infinite;
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* RIGHT PHOTO */
.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: slideRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.about-photo img {
  width: 700px;
  max-width: 90%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  box-shadow: 0 20px 50px var(--shadow);
  object-fit: cover;
  transition: transform 0.3s;
}
.about-photo img:hover {
  transform: translateY(-5px) scale(1.05  );
}

/* ====== ABOUT HERO DECOR ====== */
.about-section {
  overflow: hidden;
}

.about-photo {
  position: relative;
  z-index: 2;
  perspective: 900px;
  margin-left: 60px;
}

.about-photo img {
  position: relative;
  z-index: 2;
  cursor: none;
}

.about-orb {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(76, 201, 240, 0.45), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(14, 165, 233, 0.4), transparent 60%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}

.about-orbit {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 2px dashed rgba(76, 201, 240, 0.35);
  z-index: 0;
  pointer-events: none;
  animation: orbitSpin 22s linear infinite;
}

.about-orbit::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #4cc9f0;
  box-shadow: 0 0 14px 4px rgba(76, 201, 240, 0.75);
}

.about-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-strong) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 7s ease-in-out infinite;
}

.about-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.about-spotlight {
  z-index: 3;
}

.about-photo .float-a { top: 10%; right: 2%; animation-delay: 0.2s; }
.about-photo .float-b { top: 45%; left: 0%; animation-delay: 1s; }
.about-photo .float-c { bottom: 6%; right: 14%; animation-delay: 1.8s; }

.about-text {
  z-index: 2;
}

.education-section {
  padding: 30px 7%;
  background: var(--bg);
}

.education-section .section-title {
  text-align: left;
}

.education-subtitle {
  color: var(--text-sub);
  font-size: 13px;
  margin: 0 0 20px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.education-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.education-card .edu-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #4cc9f0, #0ea5e9);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 163, 217, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.education-card .edu-icon svg {
  width: 22px;
  height: 22px;
}

.education-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.10), rgba(0, 207, 255, 0.10), transparent);
  background-size: 250% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.education-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4cc9f0, #0ea5e9);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0;
}

.education-card.show {
  opacity: 1;
  transform: translateY(0);
}

.education-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 163, 217, 0.22);
}

.education-card:hover::before {
  opacity: 1;
  animation: eduShine 1.2s linear infinite;
}
.education-card:hover::after {
  opacity: 1;
}
.education-card:hover .edu-icon {
  transform: translateY(-3px) rotate(-6deg);
  box-shadow: 0 12px 26px rgba(0, 163, 217, 0.4);
}
.education-card:hover .edu-name {
  color: var(--text-primary);
}

@keyframes eduShine {
  0%   { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

.edu-year {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-very-faint);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
}

.edu-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 6px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.edu-major {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.edu-major::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4cc9f0, #0ea5e9);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title { font-size: 36px; }
  .timeline-content h3 { font-size: 18px; }
}

.experience-section {
  padding: 30px 7%;
}

.experience-section .section-title {
  text-align: left;
}

.experience-subtitle {
  color: var(--text-sub);
  font-size: 13px;
  margin: 0 0 20px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.experience-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.experience-card .exp-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #4cc9f0, #0ea5e9);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 163, 217, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-card .exp-icon svg {
  width: 22px;
  height: 22px;
}

.experience-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* glow accent kiri */
.experience-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4cc9f0, #0ea5e9);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--spot-x, 100%) var(--spot-y, 0%), rgba(0, 207, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.experience-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 163, 217, 0.16);
}

.experience-card:hover::before {
  opacity: 1;
}
.experience-card:hover::after {
  opacity: 1;
}
.experience-card:hover .exp-icon {
  transform: translateY(-3px) rotate(6deg);
  box-shadow: 0 12px 26px rgba(0, 163, 217, 0.4);
}
.experience-card:hover .exp-content h3 {
  color: var(--text-primary);
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  align-self: flex-start;
}

.exp-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 6px;
  transition: color 0.3s ease;
}

.exp-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.5;
}

.exp-content p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.skills-section {
  padding: 50px 7%;
  color: var(--text-primary);
  background: var(--bg-soft);
}

.skills-subtitle {
  color: var(--text-sub);
  font-size: 13px;
  margin: 0 0 20px;
}

/* GRID 2 KOLUM */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom */
  gap: 20px 40px; /* jarak antar skill */
}

.skill {
  background: var(--skill-bg);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill.show {
  opacity: 1;
  transform: translateY(0);
}

.skill:hover {
  background: linear-gradient(90deg, #4cc9f0, #0ea5e9);
  color: white;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 15px 0;
  }
}

/* VISUAL */
.bg-text {
  position: fixed;
  bottom: 0;
  right: 0;
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--bgtext-stroke);
  pointer-events: none;
  user-select: none;
  letter-spacing: -2px;
  line-height: 1;
}

.blur1, .blur2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 6s infinite ease-in-out;
}

.blur1 {
  width: 200px;
  height: 200px;
  background: #ff4ecd;
  top: 10%;
  right: 10%;
}

.blur2 {
  width: 250px;
  height: 250px;
  background: #4cc9f0;
  bottom: 10%;
  left: 5%;
  animation-delay: 2s;
}

/* PROJECT SECTION */
.projects {
  padding: 60px 10%;
}

.projects-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.projects-header h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0;
}

.projects-header span {
  font-size: 14px;
  color: var(--text-dim);
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* CARD */
.project-card {
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s, background-color 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* THUMBNAIL */
.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

/* BODY */
.project-body {
  padding: 1.2rem;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.project-tag.ux {
  background: #2a2060;
  color: #a89cf7;
}

.project-tag.data {
  background: #0d2e22;
  color: #4dcca0;
}

.project-tag.frontend {
  background: #102b45;
  color: #7dd3fc;
}

.project-num {
  font-size: 11px;
  color: var(--text-sub);
}

.project-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.project-sub {
  font-size: 12px;
  color: var(--text-shade);
  margin: 0 0 10px;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--border-strong);
  margin: 10px 0;
}

.project-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4cc9f0, #0ea5e9);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.project-link-nonactive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: #5b5b5b;
  transition: background 0.3s, transform 0.2s;
}

.project-link:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 163, 217, 0.35);
}

/* CONNECT SECTION */
.connect {
  padding: 50px 10%;
  text-align: center;
  background: var(--bg-soft);
  color: var(--text-primary);
}

.connect h2 {
  font-size: 48px;
  margin-bottom: 10px;
  text-align: center;
}

.connect p {
  color: var(--text-muted);
  margin: 0 auto 30px; 
  text-align: center;
  max-width: 600px;   
}

/* BUTTONS */
.connect-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.connect-btn {
  padding: 12px 24px;
  border: 1px solid var(--border-hover);
  border-radius: 30px;
  color: var(--text-primary);
  text-decoration: none;
  transition: 0.3s;
}

.connect-btn:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

/* COPYRIGHT */
.copyright {
  font-size: 12px;
  color: var(--text-light);
}

body.fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.fade.show {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .projects {
    padding: 40px 7%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 48px; }
  .about-title { font-size: 36px; }
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 5%;
  }

  .hero-right {
    transform: none;
    margin: 0;
  }

  .hero-avatar {
    width: 280px;
    height: 380px;
  }

  .float-a { right: -18px; }
  .float-b { left: -34px; }
  .float-c { right: 0; }
  .hero-orbit { inset: -14px; border-radius: 40px; }
  .hero-orb { inset: -8px; border-radius: 36px; }
}

@media (max-width: 560px) {
  .hero-orbit { display: none; }
  .float-a { top: -6px; }
  .float-b { top: 50%; }
  .float-c { bottom: 2%; }
  .hero-float { padding: 6px 10px; font-size: 10px; }
  .scroll-hint { display: none; }
}

@media (max-width: 1024px) {
  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 5%;
  }

  .about-photo img {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .bg-text {
    font-size: 80px;
  }
}

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;

    transform: translateY(-150%);
    transition: 0.3s;

    pointer-events: none; /* ⬅️ ini penting */
  }

  [data-theme="light"] .nav-links {
    background: rgba(244, 246, 251, 0.96);
  }

  .nav-links.active {
    transform: translateY(0);
    pointer-events: auto; /* ⬅️ aktif saat kebuka */
  }

    /* ✅ TAMBAHAN INI */
  .logo-name {
    font-size: 15px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-tag {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-right {
    transform: none;
  }

  .hero-avatar {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
}


/* ABOUT PAGE RESPONSIVE */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: start;
    padding: 100px 30px;
    gap: 30px;
    margin-top: 5px;
  }

  .about-text {
    max-width: 100%;
  }

  .about-title {
    font-size: 32px;
  }

  .about-photo {
    margin-left: 0;
  }

  .about-photo img {
    width: 500px;
  }

  .about-photo .float-a { right: 4%; }
  .about-photo .float-b { left: 2%; }
  .about-photo .float-c { right: 10%; }
  .about-section .scroll-hint { display: none; }
}

@media (max-width: 768px) {
  .timeline {
    margin-left: 0;
    padding-left: 15px;
  }
}

@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-section {
    padding: 10px 3%;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .education-section {
    padding: 10px 7%;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding: 10px 7%;
  }

  .skills-section .section-title {
    margin-top: 20px !important;
  }

  .experience-section {
    margin: 3rem 20px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .section-title {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-top: 80px;
  }
}
