:root {
  --bg: #05070d;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #aab4c5;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #60f0c0;
  --accent-2: #6aa8ff;
  --accent-3: #c084fc;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 240, 192, 0.14), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(106, 168, 255, 0.16), transparent 28%),
    radial-gradient(circle at 60% 80%, rgba(192, 132, 252, 0.10), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #070b14 52%, #05070d 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.055;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(96, 240, 192, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(22px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #04100c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 32px rgba(96, 240, 192, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.pill-link {
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 99px;
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 68px;
  align-items: center;
  padding-top: 70px;
}

.status-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  background: rgba(96, 240, 192, 0.09);
  border: 1px solid rgba(96, 240, 192, 0.20);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(96, 240, 192, 0.65);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(96, 240, 192, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(96, 240, 192, 0);
  }
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.065em;
}

h1 {
  margin-top: 24px;
  font-size: clamp(3.25rem, 7.5vw, 7.2rem);
  max-width: 980px;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
}

h3 {
  font-size: 1.42rem;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.button.primary {
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 46px rgba(96, 240, 192, 0.18);
}

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

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 54px;
}

.quick-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.quick-stats strong {
  display: block;
  font-size: 1.04rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.62;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: rgba(96, 240, 192, 0.18);
  top: 15%;
  left: -7%;
}

.orb-two {
  width: 280px;
  height: 280px;
  background: rgba(106, 168, 255, 0.20);
  right: -8%;
  bottom: 16%;
}

.profile-frame {
  position: absolute;
  inset: 52px 18px 86px 42px;
  border: 1px solid var(--line);
  border-radius: 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.profile-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.profile-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.profile-photo {
  width: 100%;
  height: calc(100% - 42px);
  object-fit: cover;
  object-position: center 38%;
  display: block;
  filter: saturate(1.03) contrast(1.03);
}

.profile-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.66);
  backdrop-filter: blur(18px);
  border-radius: 24px;
}

.profile-overlay p {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.profile-overlay h2 {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.floating-card {
  position: absolute;
  padding: 18px;
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  color: var(--muted);
  margin-top: 4px;
}

.card-a {
  top: 92px;
  right: 0;
}

.card-b {
  left: 0;
  bottom: 64px;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.82rem;
}

.section-kicker {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  padding-top: 22px;
}

.body-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.body-copy p:first-child {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-header p {
  max-width: 460px;
  color: var(--muted);
  margin: 0;
}

.project-showcase {
  display: grid;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  box-shadow: var(--shadow);
}

.project-card.large-card {
  min-height: 520px;
}

.project-visual {
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(circle at 45% 34%, rgba(96, 240, 192, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(96, 240, 192, 0.05), rgba(106, 168, 255, 0.08));
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 72%);
}

.project-content {
  padding: 40px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  background: rgba(96, 240, 192, 0.08);
}

.project-content p {
  color: var(--muted);
  font-size: 1rem;
}

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

.project-tags span {
  border: 1px solid rgba(96, 240, 192, 0.22);
  color: #dffcf3;
  background: rgba(96, 240, 192, 0.075);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.83rem;
}

.blueprint,
.hud-graphic {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(96, 240, 192, 0.18);
  border-radius: 28px;
  background: rgba(5, 7, 13, 0.34);
}

.blueprint-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.bike-line {
  position: absolute;
  border: 3px solid rgba(96, 240, 192, 0.72);
  border-radius: 999px;
  width: 118px;
  height: 118px;
  bottom: 96px;
}

.wheel-left {
  left: 48px;
}

.wheel-right {
  right: 48px;
}

.frame-line {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  transform-origin: left center;
}

.line-1 { width: 190px; left: 146px; bottom: 160px; transform: rotate(-16deg); }
.line-2 { width: 154px; left: 168px; bottom: 160px; transform: rotate(45deg); }
.line-3 { width: 170px; left: 246px; bottom: 160px; transform: rotate(18deg); }
.line-4 { width: 105px; right: 128px; bottom: 195px; transform: rotate(70deg); }

.hud-graphic {
  display: grid;
  place-items: center;
}

.glass-outline {
  width: 74%;
  height: 36%;
  border: 4px solid rgba(96, 240, 192, 0.66);
  border-radius: 999px 999px 42px 42px;
  box-shadow: inset 0 0 32px rgba(96, 240, 192, 0.11), 0 0 42px rgba(96, 240, 192, 0.09);
}

.hud-card {
  position: absolute;
  right: 27%;
  top: 35%;
  padding: 10px 16px;
  border: 1px solid rgba(96, 240, 192, 0.4);
  border-radius: 12px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  background: rgba(96, 240, 192, 0.08);
}

.hud-card.small {
  right: 45%;
  top: 52%;
  transform: scale(0.82);
}

.hud-ray {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.6;
}

.ray-1 { transform: rotate(-18deg); right: 22%; top: 45%; }
.ray-2 { transform: rotate(13deg); left: 20%; top: 57%; }

.skills-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.skill-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 250px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.skill-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 240, 192, 0.38);
  background: rgba(96, 240, 192, 0.07);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 240, 192, 0.28);
  background: rgba(96, 240, 192, 0.08);
  color: var(--accent);
  border-radius: 16px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  margin-bottom: 22px;
}

.skill-panel p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
}

.timeline-number {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  font-size: 1.4rem;
}

.timeline-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 24%, rgba(96, 240, 192, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
}

.contact-card p {
  color: var(--muted);
  max-width: 620px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .hero,
  .section-layout,
  .project-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .project-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section-header,
  .contact-card,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .cursor-glow {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 7, 13, 0.92);
    backdrop-filter: blur(22px);
  }

  .nav-links.open {
    display: flex;
  }

  .section {
    width: min(100% - 34px, var(--max));
    padding: 76px 0;
  }

  .hero {
    padding-top: 48px;
    gap: 36px;
  }

  .quick-stats,
  .skills-board {
    grid-template-columns: 1fr;
  }

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

  .profile-frame {
    inset: 40px 0 80px 0;
    transform: none;
  }

  .floating-card {
    width: 210px;
  }

  .card-a {
    right: 6px;
    top: 28px;
  }

  .card-b {
    left: 6px;
    bottom: 34px;
  }

  .project-content,
  .contact-card {
    padding: 26px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .brand span:last-child {
    display: none;
  }
}


/* --- Extra polish / gimmicks --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 22px rgba(96, 240, 192, 0.45);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.34;
}

.ubc-badge {
  width: fit-content;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  font-size: 0.88rem;
  font-weight: 800;
}

.ubc-wordmark {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  color: #06110d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 900;
}

.project-card,
.skill-panel,
.timeline-item,
.profile-frame {
  transform-style: preserve-3d;
}

.project-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  border-color: rgba(96, 240, 192, 0.36);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.50), 0 0 38px rgba(96, 240, 192, 0.06);
}

.data-visual {
  min-height: 450px;
}

.orbit-system {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 240, 192, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 240, 192, 0.16), transparent 28%),
    radial-gradient(circle at 25% 20%, rgba(106, 168, 255, 0.12), transparent 25%),
    rgba(5, 7, 13, 0.34);
  overflow: hidden;
}

.orbit-system::before,
.orbit-system::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(96, 240, 192, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 240, 192, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, black 22%, transparent 70%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(96, 240, 192, 0.25);
  border-radius: 999px;
  animation: orbitSpin 13s linear infinite;
}

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

.orbit-two {
  width: 360px;
  height: 180px;
  transform: rotate(-26deg);
  animation-duration: 17s;
}

.orbit-three {
  width: 180px;
  height: 360px;
  transform: rotate(34deg);
  animation-duration: 21s;
  animation-direction: reverse;
}

.orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  top: -6px;
  left: 50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(96, 240, 192, 0.75);
}

@keyframes orbitSpin {
  to {
    rotate: 360deg;
  }
}

.core-node {
  position: relative;
  z-index: 2;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 34px;
  border: 1px solid rgba(96, 240, 192, 0.36);
  background: rgba(5, 7, 13, 0.72);
  box-shadow: inset 0 0 34px rgba(96, 240, 192, 0.11), 0 0 44px rgba(96, 240, 192, 0.12);
}

.core-node strong,
.core-node small {
  display: block;
}

.core-node strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
  color: var(--text);
}

.core-node small {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
}

.data-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(96, 240, 192, 0.28);
  color: var(--accent);
  background: rgba(5, 7, 13, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.chip-one {
  left: 13%;
  top: 20%;
  animation: floatSoft 4.5s ease-in-out infinite;
}

.chip-two {
  right: 11%;
  top: 29%;
  animation: floatSoft 5.2s ease-in-out infinite reverse;
}

.chip-three {
  bottom: 16%;
  left: 43%;
  animation: floatSoft 4.8s ease-in-out infinite;
}

@keyframes floatSoft {
  50% {
    transform: translateY(-10px);
  }
}

.pro-hud {
  background:
    radial-gradient(circle at 50% 45%, rgba(96, 240, 192, 0.12), transparent 30%),
    rgba(5, 7, 13, 0.40);
  overflow: hidden;
}

.scanner-line {
  position: absolute;
  width: 100%;
  height: 2px;
  top: 0%;
  left: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 22px rgba(96, 240, 192, 0.65);
  animation: scan 3.6s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% {
    top: 12%;
    opacity: 0;
  }
  20%, 80% {
    opacity: 1;
  }
  50% {
    top: 82%;
  }
}

.hud-card.mini {
  left: 27%;
  top: 30%;
  transform: scale(0.75);
}

.glass-outline {
  animation: hudPulse 2.6s ease-in-out infinite;
}

@keyframes hudPulse {
  50% {
    box-shadow: inset 0 0 42px rgba(96, 240, 192, 0.18), 0 0 52px rgba(96, 240, 192, 0.15);
  }
}

@media (max-width: 720px) {
  .ubc-badge {
    align-items: flex-start;
    border-radius: 20px;
    max-width: 100%;
  }

  .data-visual {
    min-height: 360px;
  }

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

  .orbit-two {
    width: 280px;
    height: 150px;
  }

  .orbit-three {
    width: 150px;
    height: 280px;
  }

  .data-chip {
    font-size: 0.62rem;
  }
}


/* --- Cleaner project section: less sci-fi / less placeholder-looking --- */
.project-brief-panel {
  min-height: 410px;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)),
    radial-gradient(circle at 18% 18%, rgba(96, 240, 192, 0.10), transparent 34%);
}

.project-brief-panel::before {
  opacity: 0.34;
  mask-image: linear-gradient(135deg, black, transparent 70%);
}

.brief-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 13, 0.54);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.brief-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
}

.brief-card h4 {
  margin: 0 0 22px;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.brief-grid {
  display: grid;
  gap: 12px;
}

.brief-grid div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.brief-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.brief-grid strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

/* Hide old artificial visual elements if any remain unused */
.orbit-system,
.hud-graphic,
.blueprint {
  display: none;
}

/* Slightly more natural project text spacing */
.project-content p {
  line-height: 1.72;
}


/* --- Case-study project layout: no fake graphics, no placeholder images --- */
.case-study-showcase {
  display: grid;
  gap: 22px;
}

.case-study-card {
  display: block;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
}

.case-study-card .project-content {
  padding: 42px;
}

.case-study-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  margin-bottom: 18px;
}

.case-study-card p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.04rem;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.case-grid > div {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 20px;
  background: rgba(5, 7, 13, 0.28);
}

.case-label {
  display: block;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.case-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.case-grid li {
  margin: 8px 0;
}

.case-study-card .project-tags {
  margin-top: 28px;
}

.project-visual,
.project-brief-panel,
.orbit-system,
.hud-graphic,
.blueprint {
  display: none !important;
}

@media (max-width: 720px) {
  .case-study-card .project-content {
    padding: 26px;
  }

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


/* --- Polished skills icons and subtle scroll motion --- */
.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(96, 240, 192, 0.16), rgba(106, 168, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.skill-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 10px rgba(96, 240, 192, 0.18));
}

.skill-panel {
  min-height: 285px;
}

.skill-panel h3 {
  font-size: 1.34rem;
  line-height: 1.15;
}

.motion-item {
  --float-y: 0px;
  will-change: transform;
}

.motion-item.visible {
  transform: translate3d(0, var(--float-y), 0);
}

/* Make the movement feel intentional but not like a template */
.skill-panel.motion-item.visible:hover {
  transform: translate3d(0, calc(var(--float-y) - 6px), 0);
}

.case-study-card.motion-item.visible {
  transform: translate3d(0, var(--float-y), 0);
}

.timeline-item.motion-item.visible {
  transform: translate3d(0, var(--float-y), 0);
}

/* A small breathing highlight on section headers */
.section-header,
.skills-section > h2,
.about-section .section-layout {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .motion-item,
  .motion-item.visible,
  .skill-panel.motion-item.visible:hover,
  .case-study-card.motion-item.visible,
  .timeline-item.motion-item.visible {
    transform: none !important;
  }
}


/* --- Compact process section update --- */
.compact-process {
  padding-top: 82px;
  padding-bottom: 92px;
}

.process-intro {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.process-intro h2 {
  max-width: 780px;
}

.process-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 12%, rgba(96, 240, 192, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.078), rgba(255,255,255,0.04));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(145deg, black, transparent 72%);
  opacity: 0.55;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 240, 192, 0.36);
  background:
    radial-gradient(circle at 20% 12%, rgba(96, 240, 192, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
}

.process-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(96, 240, 192, 0.09);
  border: 1px solid rgba(96, 240, 192, 0.24);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
}

.process-card h3,
.process-card p {
  position: relative;
  z-index: 1;
}

.process-card h3 {
  margin-bottom: 12px;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.timeline {
  display: none;
}

@media (max-width: 980px) {
  .process-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .process-card {
    min-height: 220px;
  }
}


/* --- Cool but professional visual gimmicks --- */
:root {
  --glow-soft: rgba(96, 240, 192, 0.22);
  --glow-blue: rgba(106, 168, 255, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(96, 240, 192, 0.06) 54deg,
      transparent 112deg,
      rgba(106, 168, 255, 0.055) 210deg,
      transparent 310deg);
  animation: slowSpin 22s linear infinite;
  opacity: 0.72;
}

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

/* Moving gradient text so the hero feels alive without relying on JS */
.gradient-text {
  background-size: 220% 100%;
  animation: gradientFlow 4.8s ease-in-out infinite alternate;
}

@keyframes gradientFlow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Thin animated line under the nav */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  background-size: 220% 100%;
  animation: navLine 5s linear infinite;
  opacity: 0.8;
}

@keyframes navLine {
  to { background-position: 220% 0; }
}

/* Button shine */
.button.primary {
  position: relative;
  overflow: hidden;
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  animation: buttonSweep 3.2s ease-in-out infinite;
}

@keyframes buttonSweep {
  0%, 42% { transform: translateX(-120%) skewX(-18deg); }
  68%, 100% { transform: translateX(140%) skewX(-18deg); }
}

/* Profile image gets a subtle living border */
.profile-frame {
  animation: profileFloatSoft 5.2s ease-in-out infinite;
}

.profile-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(96, 240, 192, 0.32);
  box-shadow:
    inset 0 0 40px rgba(96, 240, 192, 0.06),
    0 0 44px rgba(96, 240, 192, 0.10);
  animation: borderPulse 3.8s ease-in-out infinite;
}

@keyframes profileFloatSoft {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-12px); }
}

@keyframes borderPulse {
  50% {
    border-color: rgba(106, 168, 255, 0.38);
    box-shadow:
      inset 0 0 50px rgba(106, 168, 255, 0.08),
      0 0 58px rgba(106, 168, 255, 0.13);
  }
}

/* Mini engineering terminal */
.mini-terminal {
  max-width: 520px;
  margin-top: 18px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(96, 240, 192, 0.20);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.72), rgba(5, 7, 13, 0.42)),
    radial-gradient(circle at 10% 10%, rgba(96, 240, 192, 0.11), transparent 36%);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  font-family: "JetBrains Mono", monospace;
  color: #dffcf3;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 13px;
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
}

.mini-terminal p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  white-space: nowrap;
  animation: terminalRise 0.75s ease forwards;
}

.mini-terminal p:nth-child(2) { animation-delay: 0.08s; }
.mini-terminal p:nth-child(3) { animation-delay: 0.18s; }
.mini-terminal p:nth-child(4) { animation-delay: 0.28s; }

.terminal-prompt {
  color: var(--accent);
  margin-right: 8px;
}

.terminal-cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 0.9s steps(2, end) infinite;
}

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

@keyframes terminalRise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Case study cards get a moving neon edge */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(96, 240, 192, 0.42) 18%,
    rgba(106, 168, 255, 0.25) 35%,
    transparent 52%);
  background-size: 240% 240%;
  animation: cardEdge 7s linear infinite;
  opacity: 0.55;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

@keyframes cardEdge {
  to { background-position: 240% 0; }
}

/* Process cards get a scanning highlight */
.process-card::after,
.skill-panel::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -35%;
  width: 45%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.process-card:hover::after,
.skill-panel:hover::after {
  transform: translateX(320%) rotate(18deg);
}

/* Make skill cards feel less static */
.skill-panel {
  position: relative;
  overflow: hidden;
}

.skill-icon {
  animation: iconHover 4.2s ease-in-out infinite;
}

.skill-panel:nth-child(2) .skill-icon { animation-delay: .35s; }
.skill-panel:nth-child(3) .skill-icon { animation-delay: .7s; }
.skill-panel:nth-child(4) .skill-icon { animation-delay: 1.05s; }

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

/* Tags slightly breathe */
.project-tags span {
  animation: tagBreath 4.5s ease-in-out infinite;
}

.project-tags span:nth-child(2n) {
  animation-delay: .6s;
}

@keyframes tagBreath {
  50% {
    border-color: rgba(96, 240, 192, 0.38);
    box-shadow: 0 0 18px rgba(96, 240, 192, 0.08);
  }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .gradient-text,
  .site-header::after,
  .button.primary::after,
  .profile-frame,
  .profile-frame::after,
  .terminal-cursor,
  .glow-card::before,
  .skill-icon,
  .project-tags span {
    animation: none !important;
  }
}

.top-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 20px rgba(96, 240, 192, 0.45);
}


/* --- Final fix: make Project Approach cards visible and remove the awkward gap --- */
.process-section.compact-process {
  padding-top: 64px !important;
  padding-bottom: 82px !important;
}

.process-section .process-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr) !important;
  gap: 36px !important;
  align-items: end !important;
  margin-bottom: 28px !important;
}

.process-section .process-intro h2 {
  font-size: clamp(2.4rem, 5vw, 4.9rem) !important;
  line-height: 0.98 !important;
  max-width: 760px !important;
}

.process-section .process-intro p {
  margin: 0 !important;
  max-width: 620px !important;
  color: var(--muted) !important;
}

.process-section .process-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 22px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.process-section .process-card {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 235px !important;
  padding: 22px !important;
  transform: none;
}

.process-section .process-number {
  margin-bottom: 22px !important;
}

.process-section .timeline {
  display: none !important;
}

@media (max-width: 980px) {
  .process-section .process-intro {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .process-section .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .process-section .process-grid {
    grid-template-columns: 1fr !important;
  }

  .process-section .process-card {
    min-height: 210px !important;
  }
}


/* --- Reliable clean motion update: simple CSS-only effects, no confusing marquee --- */
.tech-marquee,
.marquee-track {
  display: none !important;
}

.motion-orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.34;
  mix-blend-mode: screen;
}

.motion-orb-a {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 15vh;
  background: rgba(96, 240, 192, 0.18);
  animation: orbMoveA 10s ease-in-out infinite;
}

.motion-orb-b {
  width: 380px;
  height: 380px;
  right: -150px;
  top: 44vh;
  background: rgba(106, 168, 255, 0.14);
  animation: orbMoveB 13s ease-in-out infinite;
}

.motion-orb-c {
  width: 280px;
  height: 280px;
  left: 46vw;
  bottom: -120px;
  background: rgba(192, 132, 252, 0.12);
  animation: orbMoveC 12s ease-in-out infinite;
}

@keyframes orbMoveA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 45px) scale(1.12); }
}

@keyframes orbMoveB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-75px, 55px) scale(1.1); }
}

@keyframes orbMoveC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, -60px) scale(1.14); }
}

.gradient-text {
  background-size: 240% 100%;
  animation: gradientMoveClean 4.5s ease-in-out infinite alternate;
}

@keyframes gradientMoveClean {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.micro-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.micro-stack span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(96, 240, 192, 0.22);
  background: rgba(96, 240, 192, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: chipGlowClean 4s ease-in-out infinite;
}

.micro-stack span:nth-child(2) { animation-delay: .35s; }
.micro-stack span:nth-child(3) { animation-delay: .7s; }
.micro-stack span:nth-child(4) { animation-delay: 1.05s; }

@keyframes chipGlowClean {
  50% {
    border-color: rgba(96, 240, 192, 0.42);
    box-shadow: 0 0 22px rgba(96, 240, 192, 0.08);
    transform: translateY(-3px);
  }
}

.profile-frame {
  animation: profileFloatClean 5.5s ease-in-out infinite;
}

@keyframes profileFloatClean {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-10px); }
}

.button.primary {
  position: relative;
  overflow: hidden;
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
  animation: buttonShineClean 2.8s ease-in-out infinite;
}

@keyframes buttonShineClean {
  0%, 45% { transform: translateX(-130%) skewX(-18deg); }
  75%, 100% { transform: translateX(140%) skewX(-18deg); }
}

.skill-icon,
.process-number {
  animation: smallFloatClean 3.8s ease-in-out infinite;
}

.skill-panel:nth-child(2) .skill-icon,
.process-card:nth-child(2) .process-number { animation-delay: .35s; }
.skill-panel:nth-child(3) .skill-icon,
.process-card:nth-child(3) .process-number { animation-delay: .7s; }
.skill-panel:nth-child(4) .skill-icon,
.process-card:nth-child(4) .process-number { animation-delay: 1.05s; }

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

.skill-panel,
.process-card,
.case-study-card,
.contact-card {
  animation: softCardGlowClean 6s ease-in-out infinite;
}

.skill-panel:nth-child(2),
.process-card:nth-child(2),
.case-study-card:nth-child(2) { animation-delay: .7s; }

.skill-panel:nth-child(3),
.process-card:nth-child(3) { animation-delay: 1.4s; }

.skill-panel:nth-child(4),
.process-card:nth-child(4) { animation-delay: 2.1s; }

@keyframes softCardGlowClean {
  0%, 100% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  50% {
    border-color: rgba(96, 240, 192, 0.26);
    box-shadow: 0 30px 105px rgba(0,0,0,0.38), 0 0 28px rgba(96, 240, 192, 0.06);
  }
}

.project-tags span {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.project-tags span:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 240, 192, 0.42);
  background: rgba(96, 240, 192, 0.13);
}

.top-progress {
  display: block !important;
}

/* Keep the site professional on mobile */
@media (max-width: 720px) {
  .motion-orb {
    opacity: 0.24;
  }

  .micro-stack {
    margin-top: 22px;
  }
}


/* =========================================================
   FINAL ANIMATION PASS
   Only simple CSS animations that should work reliably.
   No canvas. No scroll dependency. No hover-only dependency.
   ========================================================= */

/* Hide older fragile visual effects if present */
.cursor-glow,
.particle-canvas,
.tech-marquee,
.marquee-track {
  display: none !important;
}

/* Animated top accent line, works without JS */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent-3), transparent);
  background-size: 260% 100%;
  animation: reliableLineMove 4s linear infinite !important;
  opacity: 0.85;
}

@keyframes reliableLineMove {
  from { background-position: 0% 0; }
  to { background-position: 260% 0; }
}

/* Background blobs: always visible, CSS-only */
.motion-orb {
  position: fixed !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  filter: blur(34px) !important;
  opacity: 0.36 !important;
  mix-blend-mode: screen !important;
  display: block !important;
}

.motion-orb-a {
  width: 340px !important;
  height: 340px !important;
  left: -120px !important;
  top: 16vh !important;
  background: rgba(96, 240, 192, 0.18) !important;
  animation: reliableOrbA 9s ease-in-out infinite !important;
}

.motion-orb-b {
  width: 380px !important;
  height: 380px !important;
  right: -150px !important;
  top: 42vh !important;
  background: rgba(106, 168, 255, 0.15) !important;
  animation: reliableOrbB 12s ease-in-out infinite !important;
}

.motion-orb-c {
  width: 300px !important;
  height: 300px !important;
  left: 45vw !important;
  bottom: -130px !important;
  background: rgba(192, 132, 252, 0.13) !important;
  animation: reliableOrbC 11s ease-in-out infinite !important;
}

@keyframes reliableOrbA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(80px,45px,0) scale(1.14); }
}

@keyframes reliableOrbB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-85px,55px,0) scale(1.12); }
}

@keyframes reliableOrbC {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-55px,-70px,0) scale(1.16); }
}

/* Headline gradient movement */
.gradient-text {
  background-size: 260% 100% !important;
  animation: reliableGradient 3.8s ease-in-out infinite alternate !important;
}

@keyframes reliableGradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Profile card floating */
.profile-frame {
  animation: reliableProfileFloat 4.8s ease-in-out infinite !important;
}

@keyframes reliableProfileFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-12px); }
}

/* Floating side cards */
.floating-card.card-a {
  animation: reliableFloatA 4s ease-in-out infinite !important;
}

.floating-card.card-b {
  animation: reliableFloatB 4.5s ease-in-out infinite !important;
}

@keyframes reliableFloatA {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-8px,-14px,0); }
}

@keyframes reliableFloatB {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(10px,14px,0); }
}

/* Hero chips pulse/move */
.micro-stack {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 28px !important;
}

.micro-stack span {
  animation: reliableChip 3.4s ease-in-out infinite !important;
}

.micro-stack span:nth-child(2) { animation-delay: .3s !important; }
.micro-stack span:nth-child(3) { animation-delay: .6s !important; }
.micro-stack span:nth-child(4) { animation-delay: .9s !important; }

@keyframes reliableChip {
  0%, 100% { transform: translateY(0); box-shadow: none; }
  50% { transform: translateY(-5px); box-shadow: 0 0 24px rgba(96, 240, 192, 0.11); border-color: rgba(96, 240, 192, 0.45); }
}

/* Button shine, visible CSS-only */
.button.primary {
  position: relative !important;
  overflow: hidden !important;
}

.button.primary::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  transform: translateX(-140%) skewX(-18deg) !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent) !important;
  animation: reliableShine 2.6s ease-in-out infinite !important;
}

@keyframes reliableShine {
  0%, 45% { transform: translateX(-140%) skewX(-18deg); }
  75%, 100% { transform: translateX(140%) skewX(-18deg); }
}

/* Icons and process numbers visibly move */
.skill-icon,
.process-number {
  animation: reliableSmallFloat 3.2s ease-in-out infinite !important;
}

.skill-panel:nth-child(2) .skill-icon,
.process-card:nth-child(2) .process-number { animation-delay: .3s !important; }

.skill-panel:nth-child(3) .skill-icon,
.process-card:nth-child(3) .process-number { animation-delay: .6s !important; }

.skill-panel:nth-child(4) .skill-icon,
.process-card:nth-child(4) .process-number { animation-delay: .9s !important; }

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

/* Card glow/breath */
.skill-panel,
.process-card,
.case-study-card,
.contact-card {
  animation: reliableCardGlow 5.5s ease-in-out infinite !important;
}

.skill-panel:nth-child(2),
.process-card:nth-child(2),
.case-study-card:nth-child(2) { animation-delay: .6s !important; }

.skill-panel:nth-child(3),
.process-card:nth-child(3) { animation-delay: 1.2s !important; }

.skill-panel:nth-child(4),
.process-card:nth-child(4) { animation-delay: 1.8s !important; }

@keyframes reliableCardGlow {
  0%, 100% {
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  50% {
    border-color: rgba(96, 240, 192, 0.30);
    box-shadow: 0 30px 105px rgba(0,0,0,0.38), 0 0 32px rgba(96,240,192,.08);
  }
}

/* Hover effects still work, but animation does not depend on hover */
.project-tags span,
.project-meta span {
  transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
}

.project-tags span:hover,
.project-meta span:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(96, 240, 192, .45) !important;
  background: rgba(96, 240, 192, .13) !important;
}

/* If browser/device requests reduced motion, animations will be disabled */
@media (prefers-reduced-motion: reduce) {
  .site-header::after,
  .motion-orb,
  .gradient-text,
  .profile-frame,
  .floating-card,
  .micro-stack span,
  .button.primary::after,
  .skill-icon,
  .process-number,
  .skill-panel,
  .process-card,
  .case-study-card,
  .contact-card {
    animation: none !important;
  }
}


/* =========================================================
   FORCE VISIBLE ANIMATION PATCH
   Put at the very end so it overrides previous motion rules.
   This is for portfolio preview/demo use.
   ========================================================= */

.force-motion .motion-orb {
  display: block !important;
  position: fixed !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  filter: blur(34px) !important;
  opacity: 0.42 !important;
  mix-blend-mode: screen !important;
  animation-play-state: running !important;
}

.force-motion .motion-orb-a {
  width: 340px !important;
  height: 340px !important;
  left: -120px !important;
  top: 16vh !important;
  background: rgba(96, 240, 192, 0.22) !important;
  animation: forceOrbA 6s ease-in-out infinite !important;
}

.force-motion .motion-orb-b {
  width: 390px !important;
  height: 390px !important;
  right: -150px !important;
  top: 42vh !important;
  background: rgba(106, 168, 255, 0.18) !important;
  animation: forceOrbB 7s ease-in-out infinite !important;
}

.force-motion .motion-orb-c {
  width: 300px !important;
  height: 300px !important;
  left: 45vw !important;
  bottom: -130px !important;
  background: rgba(192, 132, 252, 0.16) !important;
  animation: forceOrbC 6.5s ease-in-out infinite !important;
}

@keyframes forceOrbA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(110px,70px,0) scale(1.20); }
}

@keyframes forceOrbB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-115px,78px,0) scale(1.18); }
}

@keyframes forceOrbC {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-75px,-95px,0) scale(1.22); }
}

.force-motion .gradient-text {
  background-size: 320% 100% !important;
  animation: forceGradient 2.4s ease-in-out infinite alternate !important;
  animation-play-state: running !important;
}

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

.force-motion .profile-frame {
  animation: forceProfileFloat 3.2s ease-in-out infinite !important;
  animation-play-state: running !important;
}

@keyframes forceProfileFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(0.8deg) translateY(-18px); }
}

.force-motion .floating-card.card-a {
  animation: forceSideA 3.1s ease-in-out infinite !important;
}

.force-motion .floating-card.card-b {
  animation: forceSideB 3.4s ease-in-out infinite !important;
}

@keyframes forceSideA {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-14px,-22px,0); }
}

@keyframes forceSideB {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(14px,22px,0); }
}

.force-motion .micro-stack {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 28px !important;
}

.force-motion .micro-stack span {
  animation: forceChip 2.2s ease-in-out infinite !important;
  animation-play-state: running !important;
}

.force-motion .micro-stack span:nth-child(2) { animation-delay: .2s !important; }
.force-motion .micro-stack span:nth-child(3) { animation-delay: .4s !important; }
.force-motion .micro-stack span:nth-child(4) { animation-delay: .6s !important; }

@keyframes forceChip {
  0%, 100% {
    transform: translateY(0);
    border-color: rgba(96, 240, 192, 0.22);
    box-shadow: none;
  }
  50% {
    transform: translateY(-9px);
    border-color: rgba(96, 240, 192, 0.65);
    box-shadow: 0 0 28px rgba(96, 240, 192, 0.18);
  }
}

.force-motion .skill-icon,
.force-motion .process-number {
  animation: forceSmallFloat 2.4s ease-in-out infinite !important;
  animation-play-state: running !important;
}

.force-motion .skill-panel:nth-child(2) .skill-icon,
.force-motion .process-card:nth-child(2) .process-number { animation-delay: .2s !important; }

.force-motion .skill-panel:nth-child(3) .skill-icon,
.force-motion .process-card:nth-child(3) .process-number { animation-delay: .4s !important; }

.force-motion .skill-panel:nth-child(4) .skill-icon,
.force-motion .process-card:nth-child(4) .process-number { animation-delay: .6s !important; }

@keyframes forceSmallFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

/* Make card glow visible without relying on scroll/hover */
.force-motion .skill-panel,
.force-motion .process-card,
.force-motion .case-study-card,
.force-motion .contact-card {
  animation: forceCardGlow 4s ease-in-out infinite !important;
  animation-play-state: running !important;
}

.force-motion .skill-panel:nth-child(2),
.force-motion .process-card:nth-child(2),
.force-motion .case-study-card:nth-child(2) { animation-delay: .4s !important; }

.force-motion .skill-panel:nth-child(3),
.force-motion .process-card:nth-child(3) { animation-delay: .8s !important; }

.force-motion .skill-panel:nth-child(4),
.force-motion .process-card:nth-child(4) { animation-delay: 1.2s !important; }

@keyframes forceCardGlow {
  0%, 100% {
    border-color: rgba(255,255,255,0.14);
    box-shadow: var(--shadow);
  }
  50% {
    border-color: rgba(96, 240, 192, 0.44);
    box-shadow: 0 30px 105px rgba(0,0,0,0.42), 0 0 42px rgba(96,240,192,.14);
  }
}

.force-motion .button.primary::after {
  animation: forceShine 1.9s ease-in-out infinite !important;
}

@keyframes forceShine {
  0%, 35% { transform: translateX(-140%) skewX(-18deg); }
  70%, 100% { transform: translateX(140%) skewX(-18deg); }
}

/* Override device/browser reduced-motion preference for this preview version */
@media (prefers-reduced-motion: reduce) {
  .force-motion .motion-orb-a { animation: forceOrbA 6s ease-in-out infinite !important; }
  .force-motion .motion-orb-b { animation: forceOrbB 7s ease-in-out infinite !important; }
  .force-motion .motion-orb-c { animation: forceOrbC 6.5s ease-in-out infinite !important; }
  .force-motion .gradient-text { animation: forceGradient 2.4s ease-in-out infinite alternate !important; }
  .force-motion .profile-frame { animation: forceProfileFloat 3.2s ease-in-out infinite !important; }
  .force-motion .floating-card.card-a { animation: forceSideA 3.1s ease-in-out infinite !important; }
  .force-motion .floating-card.card-b { animation: forceSideB 3.4s ease-in-out infinite !important; }
  .force-motion .micro-stack span { animation: forceChip 2.2s ease-in-out infinite !important; }
  .force-motion .skill-icon,
  .force-motion .process-number { animation: forceSmallFloat 2.4s ease-in-out infinite !important; }
  .force-motion .skill-panel,
  .force-motion .process-card,
  .force-motion .case-study-card,
  .force-motion .contact-card { animation: forceCardGlow 4s ease-in-out infinite !important; }
  .force-motion .button.primary::after { animation: forceShine 1.9s ease-in-out infinite !important; }
}


/* =========================================================
   TONE-DOWN MOTION PATCH
   - Keep profile image static
   - Reduce movement of process numbers 01/02/03/04
   ========================================================= */

.force-motion .profile-frame,
.profile-frame {
  animation: none !important;
  transform: rotate(2deg) translateY(0) !important;
}

.force-motion .process-number,
.process-number {
  animation: subtleProcessFloat 4.2s ease-in-out infinite !important;
}

.force-motion .process-card:nth-child(2) .process-number,
.process-card:nth-child(2) .process-number { animation-delay: .2s !important; }

.force-motion .process-card:nth-child(3) .process-number,
.process-card:nth-child(3) .process-number { animation-delay: .4s !important; }

.force-motion .process-card:nth-child(4) .process-number,
.process-card:nth-child(4) .process-number { animation-delay: .6s !important; }

@keyframes subtleProcessFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(96, 240, 192, 0);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(96, 240, 192, 0.08);
  }
}


/* =========================================================
   MOTION REBALANCE PATCH
   - Slow down skill icons a bit
   - Speed up process numbers slightly from toned-down version
   ========================================================= */

.force-motion .skill-icon,
.skill-icon {
  animation: rebalancedSkillFloat 3.8s ease-in-out infinite !important;
}

@keyframes rebalancedSkillFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

.force-motion .process-number,
.process-number {
  animation: rebalancedProcessFloat 3.0s ease-in-out infinite !important;
}

.force-motion .process-card:nth-child(2) .process-number,
.process-card:nth-child(2) .process-number { animation-delay: .15s !important; }

.force-motion .process-card:nth-child(3) .process-number,
.process-card:nth-child(3) .process-number { animation-delay: .3s !important; }

.force-motion .process-card:nth-child(4) .process-number,
.process-card:nth-child(4) .process-number { animation-delay: .45s !important; }

@keyframes rebalancedProcessFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(96, 240, 192, 0);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgba(96, 240, 192, 0.09);
  }
}


/* =========================================================
   FINAL MOTION TWEAK PATCH
   - Keep profile image static
   - Slow skill/capability icons a little more
   - Speed process numbers 01/02/03/04 up a bit
   ========================================================= */

.force-motion .profile-frame,
.profile-frame {
  animation: none !important;
  transform: rotate(2deg) translateY(0) !important;
}

.force-motion .skill-icon,
.skill-icon,
.force-motion .capability-icon,
.capability-icon {
  animation: finalSkillFloat 4.8s ease-in-out infinite !important;
}

@keyframes finalSkillFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-0.75deg); }
}

.force-motion .process-number,
.process-number {
  animation: finalProcessFloat 2.4s ease-in-out infinite !important;
}

.force-motion .process-card:nth-child(2) .process-number,
.process-card:nth-child(2) .process-number { animation-delay: .12s !important; }

.force-motion .process-card:nth-child(3) .process-number,
.process-card:nth-child(3) .process-number { animation-delay: .24s !important; }

.force-motion .process-card:nth-child(4) .process-number,
.process-card:nth-child(4) .process-number { animation-delay: .36s !important; }

@keyframes finalProcessFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(96, 240, 192, 0);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 0 14px rgba(96, 240, 192, 0.10);
  }
}


/* =========================================================
   FINAL CLEAN POLISH PATCH
   Balanced motion for the final version:
   - Profile image stays static
   - Capability / skill icons move slowly and smoothly
   - Process numbers 01–04 move a little faster, but still clean
   - Subtle, professional hover polish
   ========================================================= */

.force-motion .profile-frame,
.profile-frame {
  animation: none !important;
  transform: rotate(2deg) translateY(0) !important;
}

.force-motion .skill-icon,
.skill-icon,
.force-motion .capability-icon,
.capability-icon {
  animation: finalCleanIconFloat 5.4s ease-in-out infinite !important;
  will-change: transform;
}

@keyframes finalCleanIconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 0 0 rgba(96, 240, 192, 0);
  }
  50% {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 0 12px rgba(96, 240, 192, 0.08);
  }
}

.force-motion .process-number,
.process-number {
  animation: finalCleanProcessFloat 2.15s ease-in-out infinite !important;
  will-change: transform;
}

.force-motion .process-card:nth-child(2) .process-number,
.process-card:nth-child(2) .process-number { animation-delay: .10s !important; }

.force-motion .process-card:nth-child(3) .process-number,
.process-card:nth-child(3) .process-number { animation-delay: .20s !important; }

.force-motion .process-card:nth-child(4) .process-number,
.process-card:nth-child(4) .process-number { animation-delay: .30s !important; }

@keyframes finalCleanProcessFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(96, 240, 192, 0);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgba(96, 240, 192, 0.10);
  }
}

/* gentle card hover polish */
.capability-card,
.skill-card,
.process-card,
.project-card {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease !important;
}

.capability-card:hover,
.skill-card:hover,
.process-card:hover,
.project-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), 0 0 16px rgba(96, 240, 192, 0.08) !important;
}

/* smoother buttons / pills */
button,
a.button,
.cta-button,
.nav-link,
.chip,
.tag,
.badge {
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease !important;
}
