:root {
  --bg: #0d1117;
  --bg-soft: #111827;
  --bg-elevated: #151d2b;
  --panel: #101722;
  --panel-hover: #172131;
  --border: #263244;
  --border-bright: #34445b;
  --text: #e6edf3;
  --text-soft: #a9b6c7;
  --text-muted: #718096;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --green: #4ade80;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", sans-serif;
  --container: 1160px;
  --header: 74px;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --content-max: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 10px);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.06), transparent 28rem),
    radial-gradient(circle at 90% 35%, rgba(59, 130, 246, 0.05), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
}

.dna-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
}

main {
  position: relative;
  z-index: 2;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: var(--cyan-bright);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 40px 0;
}

.section-dark {
  background: rgba(7, 11, 17, 0.48);
  border-block: 1px solid rgba(38, 50, 68, 0.55);
}

.accent {
  color: var(--cyan);
}

.gradient-text {
  background: linear-gradient(110deg, var(--cyan-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.06;
  z-index: -1;
}

.page-glow--one {
  top: 12%;
  left: -150px;
  background: var(--cyan);
}

.page-glow--two {
  right: -150px;
  top: 55%;
  background: var(--blue);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999; 
  opacity: 0;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.36) 0%, rgba(34, 211, 238, 0.2) 24%, rgba(34, 211, 238, 0.07) 48%, transparent 72%);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity;
  transition: opacity 0.25s ease;
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

.cursor-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.95), 0 0 24px rgba(34, 211, 238, 0.7);
}

/* Rotating hero role */
.hero-title {
  text-wrap: balance;
}

.role-rotator-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: min(100%, 22ch);
  min-height: 1.05em;
  max-width: 100%;
  vertical-align: baseline;
  color: var(--cyan-bright);
  overflow: visible;
}

.role-rotator {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: 0.76em;
  color: var(--cyan-bright);
  background: linear-gradient(110deg, var(--cyan-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: contents, opacity, transform;
  transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.role-rotator.is-changing {
  opacity: 0.72;
  transform: translateY(-1px);
  filter: blur(0.25px);
}

/* --- ICON KETIK ( | ) BERKEDIP --- */
.typing-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  background-color: var(--cyan);
  vertical-align: middle;
  box-shadow: 0 0 10px var(--cyan);
  animation: pureCaretBlink 1s steps(1, start) infinite !important;
}

@keyframes pureCaretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header);
  z-index: 100;
  background: rgba(13, 17, 23, 0.78);
  border-bottom: 1px solid rgba(38, 50, 68, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 7px;
  color: var(--cyan);
  font-size: 0.72rem;
  background: rgba(34, 211, 238, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav {
  position: relative;
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: var(--nav-indicator-width, 0px);
  height: 1px;
  border-radius: 999px;
  background: var(--cyan);
  transform: translateX(var(--nav-indicator-x, 0px));
  transition: transform 0.28s ease, width 0.28s ease;
  pointer-events: none;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: transparent;
  transition: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-bright);
}

.nav-link.active::before {
  width: 100%;
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 8px;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Typography */
.eyebrow {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 58px;
}

.section-number {
  min-width: 44px;
  padding: 7px 8px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 7px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  background: rgba(34, 211, 238, 0.035);
}

.section-heading h2 {
  margin-top: 5px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header) + 20px);
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.code-underline {
  position: relative;
  display: inline-block;
}

.code-underline::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), transparent);
}

.hero-description {
  max-width: 620px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  transition: transform 0ms ease, background 0ms ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #061018;
  background: linear-gradient(100deg, var(--cyan-bright), var(--cyan));
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.12);
}

.button-secondary {
  border: 1px solid var(--border-bright);
  color: var(--text);
  background: rgba(255,255,255,0.015);
}

.button-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.hero-links a:hover {
  color: var(--cyan-bright);
}

.scroll-indicator {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.scroll-indicator:hover {
  color: var(--cyan-bright);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.22);
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background: #0a0f16;
  box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, 0.025);
}

.window-top,
.window-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #0e141e;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-bright);
}

.window-file {
  color: var(--text-soft);
}

.window-lang {
  margin-left: auto;
}

.code-body {
  padding: 22px 16px 26px;
  font-family: var(--mono);
  font-size: clamp(0.67rem, 1.1vw, 0.78rem);
  line-height: 1.9;
  overflow-x: auto;
}

.code-line {
  display: grid;
  grid-template-columns: 28px 1fr;
  white-space: pre;
}

.line-number {
  color: #3e4c60;
  user-select: none;
}

.keyword {
  color: #c084fc;
}

.variable {
  color: #67e8f9;
}

.string {
  color: #86efac;
}

.boolean {
  color: #f9a8d4;
}

.comment {
  color: #506078;
}

.cursor-line {
  height: 20px;
  padding-left: 34px;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1s steps(2, start) infinite;
}

.window-status {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  gap: 18px;
  font-size: 0.58rem;
}

.window-status span:first-child {
  margin-right: auto;
  color: var(--cyan);
}

.scroll-indicator {
  position: absolute;
  left: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-arrow {
  color: var(--cyan);
  animation: float 1.8s ease-in-out infinite;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 70px;
  align-items: start;
}

.about-terminal {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0f16;
  box-shadow: var(--shadow);
}

.about-overview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.58);
  box-shadow: var(--shadow);
}

.overview-title {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(38, 50, 68, 0.72);
}

.overview-item:nth-child(odd) {
  border-right: 1px solid rgba(38, 50, 68, 0.72);
}

.overview-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.overview-label {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overview-item strong {
  color: var(--text-soft);
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 500;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.terminal-content {
  padding: 24px 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.terminal-content p {
  margin-bottom: 18px;
}

.prompt {
  color: var(--cyan);
}

.terminal-output {
  color: var(--text-soft);
  line-height: 1.8;
}

.terminal-output.success {
  color: var(--green);
}

/* Profile photo */
.profile-photo-wrap {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border: 2px solid rgba(34, 211, 238, 0.6);
  border-radius: var(--radius);
  background: #0a0f16;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35), 
              0 0 40px rgba(59, 130, 246, 0.2); /* Efek glow cyan-biru */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.photo-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  color: var(--cyan-bright);
  background: rgba(7, 12, 18, 0.84);
  font-family: var(--mono);
  font-size: 0.58rem;
  backdrop-filter: blur(8px);
}

.about-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 42px);
  align-items: start;
  margin-top: 28px;
}

.about-copy {
  min-width: 0;
}

.about-copy p {
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--text);
  font-weight: 600;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card {
  min-height: 290px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.76);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

/* --- EFEK HOVER MELAYANG (SKILLS & PROJECTS) --- */
.skills-grid .skill-card {
  transition: transform 0.3s ease, border-color 0.25s ease, background 0.25s ease !important;
}

.skills-grid .skill-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(34, 211, 238, 0.42);
  background: var(--panel-hover);
}

.projects-list .project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.projects-list .project-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 20px rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.5);
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.skill-card h3 {
  margin-bottom: 9px;
  font-size: 1rem;
}

.skill-card p {
  min-height: 52px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tags span,
.project-tags span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.61rem;
  background: rgba(255,255,255,0.015);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 950px;
  margin-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 154px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--border), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1px 1fr;
  gap: 26px;
  padding-bottom: 54px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  padding-top: 4px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.6;
}

.timeline-marker {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  margin-left: -4px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.22);
  z-index: 2;
}

.timeline-content {
  padding-left: 4px;
}

.experience-type {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-top: 6px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.organization {
  margin-top: 3px;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.timeline-content > p:last-child {
  max-width: 670px;
  margin-top: 13px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.projects-list .project-card {
  height: 100%;
}

.projects-list .project-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.project-top {
  display: flex;
  align-items: center;
  min-height: 18px;
  margin-bottom: 14px;
}

.project-type {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-tags {
  margin-top: 18px;
  margin-bottom: 30px;
}

.project-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 0;
  padding: 10px 13px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.66rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-action span {
  transition: transform 0.2s ease;
}

.project-action:hover {
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
}

.project-action:hover span {
  transform: translate(3px, -2px);
}

.section-heading--projects {
  align-items: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
}

/* --- PROJECT CARD HOVER EFFECT --- */
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.8);
  position: relative;
  /* Transisi khusus hover yang sangat halus */
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease !important;
}

.project-card:hover {
  transform: translateY(-10px) !important;
  border-color: rgba(34, 211, 238, 0.6) !important;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.2) !important;
}

.project-visual {
  min-height: 250px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 75% 20%, rgba(34, 211, 238, 0.16), transparent 25%),
    linear-gradient(145deg, #0d1723, #0b111a);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: #0b111a;
}

.browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-bright);
}

.browser-bar small {
  margin-left: 8px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.browser-content {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.04));
}

.mock-line {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.75), rgba(59, 130, 246, 0.22));
}

.mock-line--long {
  width: 72%;
}

.mock-line--short {
  width: 43%;
}

.mock-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 30px;
}

.mock-blocks span {
  height: 65px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.04);
}

.project-visual--terminal {
  display: grid;
  place-items: center;
  min-height: 250px;
}

.mini-terminal {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #080d14;
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 2.1;
}

.mini-terminal p {
  margin: 0;
}

.terminal-green {
  color: var(--green);
}

.terminal-blue {
  color: var(--cyan);
}

.project-content {
  padding: 27px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.project-content h3 {
  margin-top: 13px;
  font-size: 1.45rem;
}

.project-content p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.project-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 24px;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.project-link span {
  transition: transform 0.2s ease;
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

/* Credentials */
.credentials {
  border-top: 1px solid var(--border);
}

.credential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

.credential-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.credential-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.035);
  font-size: 1rem;
}

.credential h3 {
  font-size: 1rem;
}

.credential p {
  margin-top: 3px;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.credential small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.credentials + .credentials {
  margin-top: 10px;
}

.credential-date {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.65rem;
  white-space: nowrap;
}


.credential-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.credential-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  color: var(--cyan-bright);
  background: rgba(34, 211, 238, 0.04);
  font-family: var(--mono);
  font-size: 0.62rem;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.credential-button:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  transform: translateY(-1px);
}

.credential-button span {
  transition: transform 0.2s ease;
}

.credential-button:hover span {
  transform: translate(2px, -2px);
}

/* Contact */
.contact-section {
  padding-top: 80px;
  padding-bottom: 110px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  padding: 54px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(10, 15, 22, 0.98));
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  max-width: 560px;
  margin-top: 13px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.contact-copy > p:last-child {
  max-width: 570px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-actions {
  border-top: 1px solid var(--border);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: color 0.2s ease, padding 0.2s ease;
}

.contact-row:hover {
  padding-left: 8px;
  color: var(--cyan-bright);
}

.contact-row:hover .contact-label {
  color: var(--cyan-bright);
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 108px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-label svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer a:hover {
  color: var(--cyan);
}

/* --- EFEK SCROLL REVEAL --- */
.reveal {
  opacity: 0 !important;
  transform: translateY(100px) !important;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out !important;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-delay {
  transition-delay: 0.15s !important;
}

/* Animations */
@keyframes blink {
  50% { opacity: 0; }
}

@keyframes float {
  50% { transform: translateY(4px); }
}

/* Responsive */
@media (max-width: 1050px) {
  .nav {
    gap: 18px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    gap: 45px;
  }

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

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

@media (max-width: 850px) {
  :root {
    --header: 68px;
  }

  .section {
    padding: 90px 0;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav {
    position: absolute;
    top: var(--header);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.97);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
  }

  .nav::after,
  .nav-link::before {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header) + 50px);
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 11vw, 4.6rem);
  }

  .role-rotator-wrap {
    max-width: 100%;
  }

  .code-window {
    max-width: 680px;
  }

  .about-grid {
    gap: 32px;
  }

  .about-content {
    grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
    gap: 30px;
    margin-top: 8px;
  }

  .about-copy {
    width: 100%;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline::before {
    left: 128px;
  }

  .timeline-item {
    grid-template-columns: 105px 1px 1fr;
    gap: 20px;
  }

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

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

  .contact-card {
    gap: 45px;
    padding: 36px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .section {
    padding: 75px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .role-rotator-wrap {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-links {
    flex-wrap: wrap;
  }

  .window-status span:nth-child(n+3) {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 4px;
  }

  .profile-photo-wrap {
    max-width: 260px;
  }

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

  .overview-item,
  .overview-item:nth-child(odd) {
    border-right: 0;
  }

  .overview-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(38, 50, 68, 0.72);
  }

  .overview-item:last-child {
    border-bottom: 0;
  }

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

  .skill-card {
    min-height: auto;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 26px;
  }

  .timeline-date {
    order: 1;
  }

  .timeline-marker {
    position: absolute;
    left: 3px;
    top: 4px;
    margin: 0;
  }

  .timeline-content {
    order: 3;
    padding: 0;
  }

  .credential {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .credential-side {
    width: 100%;
    justify-content: space-between;
  }

  .contact-card {
    padding: 27px 20px;
    border-radius: 14px;
  }

  .contact-copy h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-indicator {
    display: none;
  }

  .role-rotator-wrap {
    display: inline-grid;
    max-width: 100%;
  }

  .typing-caret {
    display: inline-block;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow,
  .dna-canvas {
    display: none;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: clamp(2.45rem, 12.6vw, 3.5rem);
  }

  .role-rotator {
    font-size: clamp(0.58em, 8vw, 0.72em);
  }

  .role-rotator-wrap {
    width: min(100%, 16ch);
  }

  .code-window {
    border-radius: 11px;
  }

  .code-body {
    padding-inline: 12px;
    font-size: 0.63rem;
  }

  .about-copy p {
    font-size: 0.9rem;
  }

  .project-card,
  .skill-card {
    padding: 20px;
  }
}

@media (max-width: 620px) {
  .role-rotator-wrap {
    width: min(100%, 17ch);
  }
}

@media (max-width: 430px) {
  .role-rotator-wrap {
    width: min(100%, 16ch);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- GARIS KETIK ( | ) --- */
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
  word-break: break-word;
}

.role-rotator-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  vertical-align: baseline;
  color: var(--cyan-bright);
}

.role-rotator {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82em;
  color: var(--cyan-bright);
  background: linear-gradient(110deg, var(--cyan-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- SCROLL PROGRESS BAR (LOCKED 60/120FPS) --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
  z-index: 99999;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  /* Tidak boleh ada properti 'transition' di sini */
}

/* --- EXPERIENCE TIMELINE & PERMANENT 16:9 PHOTOCARD --- */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1160px;
  margin: 0 auto;
}

/* --- PERFECT ALIGNED EXPERIENCE ROWS & CONTINUOUS LINE --- */
.experience-rows {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

/* Mengatur item timeline agar garisnya menyambung mulus antar baris */
.exp-row .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1px 1fr;
  gap: 26px;
  padding-bottom: 0 !important;
}

.exp-row .timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: -40px; /* Menembus jarak gap antar row secara presisi */
  left: 154px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--border));
  z-index: 1;
}

.exp-row:last-child .timeline-item::before {
  display: none;
}

/* Ukuran dan posisi Photocard Landscape 16:9 yang pas dan rapi */
.experience-photocard {
  width: 100%;
  max-width: 380px !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto;
  justify-self: center;
}

@media (max-width: 950px) {
  .exp-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .exp-row .timeline-item::before {
    display: none;
  }
  .experience-photocard {
    max-width: 100% !important;
  }
}