:root {
  --bg: #080d1a;
  --bg-soft: #0d1426;
  --card: rgba(20, 29, 50, 0.72);
  --card-solid: #111a2e;
  --text: #f4f7ff;
  --muted: #a3aec7;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #6ee7f9;
  --primary-2: #7c6cff;
  --accent: #b8ff6a;
  --header: rgba(8, 13, 26, 0.76);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --chart-c1: #6ee7f9;
  --chart-c2: #8b7cff;
  --chart-c3: #b8ff6a;
  --chart-c4: #ffb057;
  --chart-c5: #ff6b8a;
  --chart-grid: rgba(255, 255, 255, 0.07);
  --chart-guide: rgba(255, 255, 255, 0.2);
  --chart-track: rgba(255, 255, 255, 0.08);
  --chart-panel: rgba(255, 255, 255, 0.06);
}

body.light-theme {
  --bg: #f6f8fc;
  --bg-soft: #edf1f8;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #12182a;
  --muted: #626e87;
  --line: rgba(18, 24, 42, 0.1);
  --header: rgba(246, 248, 252, 0.82);
  --shadow: 0 28px 80px rgba(45, 58, 90, 0.12);

  --chart-c1: #0e8ba8;
  --chart-c2: #5b46e8;
  --chart-c3: #4f9a12;
  --chart-c4: #cf6d05;
  --chart-c5: #d92a56;
  --chart-grid: rgba(18, 24, 42, 0.09);
  --chart-guide: rgba(18, 24, 42, 0.24);
  --chart-track: rgba(18, 24, 42, 0.08);
  --chart-panel: rgba(18, 24, 42, 0.05);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(124, 108, 255, 0.16), transparent 27%),
    radial-gradient(circle at 92% 12%, rgba(110, 231, 249, 0.12), transparent 24%),
    var(--bg);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  color: #07101a;
  background: var(--primary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--primary-2));
  border: 3px solid var(--bg);
  border-radius: 999px;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

.section-soft {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(124, 108, 255, 0.035), transparent), var(--bg-soft);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #07101a;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  font: 700 14px/1 "Space Grotesk", sans-serif;
  box-shadow: 0 10px 35px rgba(110, 231, 249, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
  transition: transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--text);
}

.nav-links > a:hover::after,
.nav-links > a.active::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  padding: 10px 16px;
  color: #07101a;
  background: var(--primary);
  border-radius: 999px;
}

.theme-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-btn {
  padding: 6px 11px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  color: #07101a;
  background: var(--primary);
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.hero {
  display: grid;
  min-height: 100svh;
  padding-top: 150px;
  place-items: center;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 70px;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(184, 255, 106, 0.12);
}

.intro {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 20px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(58px, 8vw, 104px);
  letter-spacing: -0.07em;
}

.accent-dot {
  color: var(--primary);
}

.hero h2 {
  max-width: 720px;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(25px, 4vw, 43px);
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 680px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #07101a;
  background: linear-gradient(135deg, var(--primary), #b0f7ff);
  box-shadow: 0 18px 45px rgba(110, 231, 249, 0.18);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--card);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font: 700 18px/1.2 "Space Grotesk", sans-serif;
}

.hero-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.profile-card {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(350px, 82%);
  min-height: 440px;
  padding: 28px;
  transform: translate(-50%, -50%) rotate(3deg);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(110, 231, 249, 0.18), rgba(124, 108, 255, 0.05) 48%, rgba(184, 255, 106, 0.08)),
    var(--card-solid);
  border-radius: 42px;
  box-shadow: var(--shadow);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.profile-card::before {
  position: absolute;
  width: 240px;
  height: 240px;
  content: "";
  transform: translate(155px, -120px);
  background: var(--primary-2);
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(10px);
}

.avatar-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Foto dipotong lingkaran; latar gradien avatar tetap terlihat di keempat sudut. */
.avatar-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #07101a;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(145deg, var(--primary), var(--primary-2));
  border-radius: 30px;
  font: 700 clamp(70px, 10vw, 120px)/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.18);
}

.profile-info {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.profile-info span {
  color: var(--muted);
  font-size: 12px;
}

.profile-info strong {
  font-size: 14px;
}

.profile-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 460px;
  height: 460px;
}

.orbit-two {
  width: 560px;
  height: 560px;
  border-style: dashed;
  animation: rotate 35s linear infinite;
}

.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--header);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: float 5s ease-in-out infinite;
}

.floating-card div {
  display: flex;
  flex-direction: column;
}

.floating-card small {
  color: var(--muted);
  font-size: 10px;
}

.floating-card strong {
  font-size: 12px;
}

.card-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #07101a;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 800;
}

.card-code {
  top: 14%;
  left: -2%;
}

.card-health {
  right: -3%;
  bottom: 19%;
  animation-delay: -1.5s;
}

.card-health .card-icon {
  background: var(--accent);
}

.card-vision {
  bottom: 4%;
  left: 4%;
  animation-delay: -3s;
}

.card-vision .card-icon {
  color: white;
  background: var(--primary-2);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.scroll-indicator i {
  width: 38px;
  height: 1px;
  background: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 100px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 60px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font: 700 12px/1 "Space Grotesk", sans-serif;
}

.section-number::after {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--line);
}

.section-heading h2 {
  margin-top: 13px;
  font-size: clamp(35px, 5vw, 58px);
  letter-spacing: -0.055em;
}

.about-content .lead {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
}

.about-content > p:not(.lead) {
  margin-top: 22px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.info-grid div {
  display: flex;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
}

.info-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.info-grid strong,
.info-grid a {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

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

.skill-card {
  position: relative;
  min-height: 285px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 249, 0.38);
}

.skill-card::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  content: "";
  background: var(--primary-2);
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(8px);
}

.skill-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  place-items: center;
  color: #07101a;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 15px;
  font: 800 13px/1 "Space Grotesk", sans-serif;
}

.skill-card h3,
.project-card h3,
.timeline-content h3 {
  font-size: 24px;
  letter-spacing: -0.035em;
}

.skill-card p,
.project-card p,
.timeline-content p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

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

.project-card {
  display: grid;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 231, 249, 0.35);
}

.project-featured {
  grid-column: 1 / -1;
  grid-template-columns: 1.2fr 0.8fr;
}

.project-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.project-featured .project-visual {
  min-height: 430px;
}

.project-body {
  padding: 32px;
}

.project-featured .project-body {
  display: flex;
  padding: 42px;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: clamp(25px, 3.5vw, 38px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.visual-ai {
  background:
    linear-gradient(120deg, rgba(110, 231, 249, 0.08), rgba(124, 108, 255, 0.25)),
    radial-gradient(circle at 50% 50%, #273455, #0e1528 70%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.detection-frame {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(110, 231, 249, 0.15);
}

.detection-frame::before,
.detection-frame::after {
  position: absolute;
  content: "";
  background: rgba(255,255,255,.12);
  border-radius: 9px;
}

.detection-frame::before {
  inset: 15% 18%;
}

.detection-frame::after {
  right: 22%;
  bottom: 14%;
  left: 22%;
  height: 15%;
}

.detection-frame span {
  position: absolute;
  top: -25px;
  left: -2px;
  padding: 3px 7px;
  color: #07101a;
  background: var(--primary);
  border-radius: 5px 5px 5px 0;
  font-size: 9px;
  font-weight: 800;
}

.frame-one {
  top: 20%;
  left: 13%;
  width: 31%;
  height: 49%;
}

.frame-two {
  right: 12%;
  bottom: 15%;
  width: 36%;
  height: 40%;
  border-color: var(--accent);
}

.frame-two span {
  background: var(--accent);
}

.visual-data {
  background: linear-gradient(145deg, #111c35, #302765);
}

.chart-bars {
  position: absolute;
  right: 13%;
  bottom: 16%;
  left: 13%;
  display: flex;
  align-items: flex-end;
  gap: 5%;
  height: 65%;
}

.chart-bars i {
  width: 12%;
  background: linear-gradient(var(--primary), var(--primary-2));
  border-radius: 8px 8px 2px 2px;
  opacity: 0.82;
}

.chart-bars i:nth-child(1) { height: 34%; }
.chart-bars i:nth-child(2) { height: 52%; }
.chart-bars i:nth-child(3) { height: 45%; }
.chart-bars i:nth-child(4) { height: 68%; }
.chart-bars i:nth-child(5) { height: 62%; }
.chart-bars i:nth-child(6) { height: 87%; }

.chart-line {
  position: absolute;
  top: 19%;
  right: 13%;
  left: 13%;
  height: 2px;
  transform: rotate(-9deg);
  transform-origin: left;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(184, 255, 106, 0.55);
}

.visual-system {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0d2330, #162251);
}

.dashboard-window {
  width: 76%;
  height: 68%;
  padding: 15px;
  transform: rotate(-4deg);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,.28);
}

.window-top {
  display: flex;
  gap: 6px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.window-top i {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

.window-content {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.window-content span {
  height: 65px;
  background: linear-gradient(145deg, rgba(110,231,249,.17), rgba(124,108,255,.15));
  border-radius: 10px;
}

.timeline {
  position: relative;
  margin-top: 30px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 190px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item {
  display: grid;
  min-height: 190px;
  grid-template-columns: 160px 60px 1fr;
}

.timeline-date {
  padding-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timeline-dot {
  position: relative;
}

.timeline-dot::before {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 25px;
  width: 11px;
  height: 11px;
  content: "";
  border: 4px solid var(--bg-soft);
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--primary);
}

.timeline-content {
  max-width: 680px;
  padding-bottom: 55px;
}

.timeline-content > span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-top: 8px;
}

.expertise-panel {
  display: grid;
  margin-top: 60px;
  padding: 40px;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-md);
}

.expertise-group h4 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--card-solid);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.metrics-panel {
  margin-top: 20px;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-md);
}

.metrics-heading span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.metrics-grid {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-item {
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: var(--card-solid);
  border-radius: var(--radius-sm);
  text-align: center;
}

.metric-item strong {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  background-clip: text;
  -webkit-background-clip: text;
  font: 700 30px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.metric-item .metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.education-list {
  display: grid;
  gap: 18px;
}

.education-card,
.publication-card {
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-md);
}

.education-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.education-top h3 {
  font-size: 21px;
  letter-spacing: -0.03em;
}

.education-top span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.education-org {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.education-thesis {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.education-card .tags {
  margin-top: 20px;
}

.publication-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-quote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

#modal-tags {
  margin-top: 22px;
}

.contact-section {
  padding-top: 100px;
}

.contact-card {
  display: grid;
  padding: 65px;
  color: #08101b;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.55), transparent 23%),
    linear-gradient(135deg, var(--primary), #b2f5ff 48%, var(--accent));
  border-radius: 38px;
  box-shadow: 0 28px 80px rgba(110, 231, 249, 0.18);
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
}

.contact-card .section-kicker {
  color: #384455;
}

.contact-card h2 {
  max-width: 720px;
  margin-top: 12px;
  font-size: clamp(37px, 5vw, 61px);
  letter-spacing: -0.06em;
}

.contact-card p:not(.section-kicker) {
  max-width: 650px;
  margin-top: 18px;
  color: #354153;
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}

.btn-light {
  width: 100%;
  background: #08101b;
  color: white;
}

.copy-email {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(8,16,27,.22);
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

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

.footer p {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.back-to-top {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(.2,.65,.3,1), opacity 0.75s ease;
}

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

.modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.75);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 34px));
  max-height: calc(100svh - 50px);
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--card-solid);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 22px;
}

.modal-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.modal-dialog h2 {
  margin-top: 13px;
  padding-right: 35px;
  font-size: 36px;
  letter-spacing: -.04em;
}

.modal-dialog > p {
  margin-top: 18px;
  color: var(--muted);
}

.modal-points {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.modal-points span {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.modal-points span::before {
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 3000;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  transform: translateY(20px);
  color: #07101a;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  font-weight: 800;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cursor-glow {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(110, 231, 249, 0.075), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

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

  .nav-links {
    position: fixed;
    z-index: 1001;
    top: 78px;
    right: 20px;
    left: 20px;
    display: flex;
    padding: 22px;
    transform: translateY(-15px);
    visibility: hidden;
    border: 1px solid var(--line);
    background: var(--card-solid);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    flex-direction: column;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-links > a,
  .nav-links .nav-cta,
  .theme-toggle {
    width: 100%;
    text-align: center;
  }

  .lang-toggle {
    justify-content: center;
    width: 100%;
  }

  .lang-btn {
    flex: 1;
  }

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

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-description,
  .hero h2 {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .two-column,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-featured .project-visual {
    min-height: 360px;
  }

  .expertise-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 90px 0; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: clamp(52px, 18vw, 78px); }
  .hero-stats { gap: 16px; flex-direction: column; }
  .hero-stats div { align-items: center; }
  .hero-visual { min-height: 440px; }
  .profile-card { min-height: 365px; width: min(300px, 78%); }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 420px; height: 420px; }
  .floating-card { padding: 10px 12px; }
  .card-code { left: 0; }
  .card-health { right: 0; }
  .card-vision { left: 1%; }
  .skills-grid,
  .projects-grid,
  .info-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-visual,
  .project-featured .project-visual { min-height: 285px; }
  .project-body,
  .project-featured .project-body { padding: 27px; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 30px 1fr; }
  .timeline-date { grid-column: 2; margin-bottom: 8px; }
  .timeline-dot { grid-row: 1 / span 2; grid-column: 1; }
  .timeline-dot::before { left: 2px; }
  .timeline-content { grid-column: 2; }
  .contact-card { padding: 35px 25px; border-radius: 25px; }
  .contact-card h2 { font-size: 39px; }
  .footer-inner { flex-direction: column; }
  .modal-dialog { padding: 34px 25px; }
  .cursor-glow { display: none; }
  .expertise-panel,
  .metrics-panel { padding: 26px 22px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric-item { padding: 16px 10px; }
  .metric-item strong { font-size: 24px; }
  .education-card,
  .publication-card { padding: 22px; }
  .education-top { flex-direction: column; gap: 4px; }
}

/* =========================================
   DATA CHARTS
   ========================================= */

.project-block + .project-block {
  margin-top: 80px;
}

.project-block .metrics-panel {
  margin-top: 18px;
}

.deck-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.deck-heading h3 {
  margin-top: 6px;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -0.035em;
}

.deck-heading .section-kicker {
  font-size: 11px;
}

.deck-source {
  flex-shrink: 0;
  max-width: 290px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.chart-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.chart-card {
  display: flex;
  padding: 26px 26px 20px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-md);
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.chart-card:hover {
  border-color: rgba(110, 231, 249, 0.32);
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-head h4 {
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.chart-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.chart-body {
  margin-top: 20px;
  flex: 1;
}

.chart-note {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* --- SVG primitives --- */

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-svg text {
  font-family: "Inter", sans-serif;
}

.chart-svg .c-muted { fill: var(--muted); }
.chart-svg .c-strong { fill: var(--text); }
.chart-svg .c-accent { fill: var(--primary); }
.chart-svg .c-warn { fill: var(--chart-c4); }
.chart-svg .c-bold { font-weight: 700; }

.chart-svg .c-grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart-svg .c-axis {
  stroke: var(--chart-guide);
  stroke-width: 1.4;
}

.chart-svg .c-guide {
  stroke: var(--chart-guide);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart-svg .c-divider {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-svg .c-panel {
  fill: var(--chart-panel);
  stroke: var(--line);
  stroke-width: 1;
}

.chart-svg .c-panel-warn {
  stroke: color-mix(in srgb, var(--chart-c4) 55%, transparent);
}

.chart-svg .c-track {
  fill: var(--chart-track);
}

.chart-svg .c-band {
  fill-opacity: 0.1;
}

.chart-svg .c-connector {
  stroke: var(--chart-guide);
}

.chart-svg .c-pulse {
  fill-opacity: 0.22;
  animation: chart-pulse 2.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes chart-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 0.25; }
}

/* --- Entrance animations (toggled by .is-drawn) --- */

.chart-svg .draw-line {
  stroke-dasharray: var(--dash);
  stroke-dashoffset: var(--dash);
  transition: stroke-dashoffset 1.7s cubic-bezier(0.35, 0.1, 0.25, 1);
}

.chart-svg.is-drawn .draw-line {
  stroke-dashoffset: 0;
}

.chart-svg .draw-area {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s, opacity 0.8s ease 0.2s;
}

.chart-svg.is-drawn .draw-area {
  transform: scaleY(1);
  opacity: 1;
}

.chart-svg .draw-pop {
  transform: scale(0.55);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.42, 0.5, 1), opacity 0.45s ease;
}

.chart-svg.is-drawn .draw-pop {
  transform: scale(1);
  opacity: 1;
}

.chart-svg .draw-bar-x {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.95s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.chart-svg .draw-bar-x-rev {
  transform-origin: right center;
}

.chart-svg.is-drawn .draw-bar-x {
  transform: scaleX(1);
}

.chart-svg .draw-bar-y {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom center;
  transition: transform 1s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.chart-svg.is-drawn .draw-bar-y {
  transform: scaleY(1);
}

.chart-svg .draw-arc {
  stroke-dasharray: 0 var(--dash);
  stroke-dashoffset: var(--offset);
  transition: stroke-dasharray 1.15s cubic-bezier(0.3, 0.8, 0.35, 1);
}

.chart-svg.is-drawn .draw-arc {
  stroke-dasharray: var(--seg) var(--dash);
}

/* --- Live visuals inside the project cards --- */

.visual-ai::after {
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 24px 5px rgba(110, 231, 249, 0.35);
  animation: visual-scan 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes visual-scan {
  0% { top: 3%; opacity: 0; }
  14% { opacity: 0.95; }
  86% { opacity: 0.95; }
  100% { top: 97%; opacity: 0; }
}

.detection-frame {
  animation: frame-breathe 4.4s ease-in-out infinite;
}

.frame-two {
  animation-delay: -2.2s;
}

@keyframes frame-breathe {
  0%, 100% { box-shadow: 0 0 26px rgba(110, 231, 249, 0.14); }
  50% { box-shadow: 0 0 46px rgba(110, 231, 249, 0.42); }
}

.visual-chart {
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  transform: translateY(-50%);
}

.visual-caption {
  position: absolute;
  top: 26px;
  right: 30px;
  left: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visual-caption strong {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
  /* Keeps technical casing such as "mAP@0.5" intact. */
  text-transform: none;
}

@media (max-width: 980px) {
  .chart-deck { grid-template-columns: 1fr; }
  .deck-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .deck-source { max-width: none; text-align: left; }
}

@media (max-width: 700px) {
  .project-block + .project-block { margin-top: 56px; }
  .chart-card { padding: 20px 16px 16px; }
  .chart-head h4 { font-size: 15px; }
  .chart-head p { font-size: 12px; }
  .visual-caption { top: 18px; right: 20px; left: 20px; font-size: 9px; }
  .visual-caption strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
