:root {
  --bg: #0b1020;
  --panel: #111a33;
  --panel-2: #17213f;
  --text: #eef4ff;
  --muted: #a9b7d3;
  --line: rgba(255,255,255,0.1);
  --accent: #8cc8ff;
  --accent-2: #d9f99d;
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(140,200,255,0.18), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(217,249,157,0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,16,32,0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 28px; }

.hero { min-height: 84vh; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; padding: 72px 0; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); line-height: 0.95; letter-spacing: -0.08em; margin-bottom: 24px; }
h1 span { color: var(--accent); }
.hero-text { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 720px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { border-radius: 999px; padding: 13px 20px; font-weight: 800; transition: transform 0.2s ease, border 0.2s ease; display: inline-flex; align-items: center; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--text); color: #0b1020; }
.btn.secondary { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.04); }

.hero-card, .skill-card, .timeline-item, .project-card, .education-card, .contact-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
}
.hero-card { padding: 30px; }
.avatar { width: 84px; height: 84px; border-radius: 28px; background: var(--panel-2); display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; margin-bottom: 24px; border: 1px solid var(--line); }
.hero-card h2 { font-size: 1.6rem; line-height: 1.2; }
.hero-card p, .about-grid p, .timeline-item p, .project-card p, .education-card p, .contact-section p { color: var(--muted); }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.quick-stats div { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.04); }
.quick-stats strong { display: block; font-size: 1.4rem; color: var(--accent-2); }
.quick-stats span { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.25; }

.section { padding: 82px 0; }
.section-heading { max-width: 780px; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 1.05rem; }
.skill-grid, .project-grid, .education-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card, .project-card, .education-card { padding: 24px; box-shadow: none; }
.skill-card h3, .project-card h3, .education-card h3 { margin-bottom: 10px; }
.skill-card p { color: var(--muted); margin-bottom: 0; }

.timeline { display: grid; gap: 18px; }
.timeline-item { padding: 26px; box-shadow: none; }
.timeline-item .date { color: var(--accent-2); font-weight: 800; font-size: 0.86rem; }
.timeline-item h3 { margin: 8px 0 10px; font-size: 1.35rem; }
ul { margin-bottom: 0; color: var(--muted); padding-left: 22px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: 0.8rem; color: var(--accent-2); background: rgba(217,249,157,0.08); border: 1px solid rgba(217,249,157,0.16); padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.education-grid { grid-template-columns: 1fr 1fr; }
.education-card span { color: var(--accent); font-weight: 700; }
.contact-section { padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { padding: 28px 0; display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 78px; left: 20px; right: 20px; flex-direction: column; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
  .nav-links.open { display: flex; }
  .hero, .about-grid, .skill-grid, .project-grid, .education-grid, .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .quick-stats { grid-template-columns: 1fr; }
  .contact-section { align-items: flex-start; }
}

/* Interactive polish */
body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 68%);
}

.background-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.background-bubbles span {
  --mx: 0px;
  --my: 0px;
  position: absolute;
  width: clamp(90px, 12vw, 180px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.42), rgba(140,200,255,0.14) 35%, rgba(217,249,157,0.08) 65%, transparent 72%);
  border: 1px solid rgba(255,255,255,0.10);
  filter: blur(0.2px);
  opacity: 0.55;
  transform: translate(var(--mx), var(--my));
  animation: bubbleFloat 11s ease-in-out infinite;
  transition: transform 0.45s ease-out, opacity 0.25s ease;
}

.background-bubbles span:nth-child(1) { left: 5%; top: 16%; animation-delay: -1s; }
.background-bubbles span:nth-child(2) { right: 9%; top: 18%; width: clamp(70px, 10vw, 140px); animation-delay: -4s; }
.background-bubbles span:nth-child(3) { left: 12%; bottom: 18%; width: clamp(60px, 8vw, 120px); animation-delay: -7s; }
.background-bubbles span:nth-child(4) { right: 17%; bottom: 15%; animation-delay: -2s; }
.background-bubbles span:nth-child(5) { left: 46%; top: 42%; width: clamp(45px, 7vw, 90px); animation-delay: -9s; }
.background-bubbles span:nth-child(6) { right: 35%; bottom: 34%; width: clamp(55px, 8vw, 110px); animation-delay: -6s; }

@keyframes bubbleFloat {
  0%, 100% { margin-top: 0; margin-left: 0; }
  35% { margin-top: -24px; margin-left: 18px; }
  70% { margin-top: 18px; margin-left: -14px; }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(217,249,157,0.7);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 1px solid rgba(140,200,255,0.75);
  box-shadow: 0 0 35px rgba(140,200,255,0.25);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease, border 0.2s ease;
}

@media (pointer: fine) {
  body {  }
  body a, body button { cursor: none; }
  .cursor-dot, .cursor-ring { display: block; }
  body.cursor-hover .cursor-ring {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    background: rgba(140,200,255,0.08);
    border-color: rgba(217,249,157,0.95);
  }
  body.cursor-hover .cursor-dot { background: var(--accent); }
}

.brand, .avatar, .btn, .nav-links a, .skill-card, .project-card, .timeline-item, .education-card, .hero-card, .quick-stats div, .tags span {
  will-change: transform;
}

.brand {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand::after, .btn::after, .project-card::after, .skill-card::after {
  content: "";
  position: absolute;
  inset: -60% -90%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.30), transparent 65%);
  transform: translateX(-70%) rotate(8deg);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.brand:hover { transform: rotate(-6deg) scale(1.08); box-shadow: 0 14px 34px rgba(140,200,255,0.25); }
.brand:hover::after, .btn:hover::after, .project-card:hover::after, .skill-card:hover::after { transform: translateX(70%) rotate(8deg); }

.btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(140,200,255,0);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 38px rgba(140,200,255,0.18);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-card {
  position: relative;
  animation: cardFloat 7s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(140,200,255,0.8), transparent 35%, rgba(217,249,157,0.65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

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

.skill-card, .project-card, .timeline-item, .education-card, .quick-stats div {
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.skill-card:hover, .project-card:hover, .timeline-item:hover, .education-card:hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.45);
  background: linear-gradient(180deg, rgba(140,200,255,0.12), rgba(255,255,255,0.045));
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.quick-stats div:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(217,249,157,0.40);
  background: rgba(217,249,157,0.08);
}

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

.tags span:hover {
  transform: translateY(-3px) rotate(-1deg);
  background: rgba(217,249,157,0.14);
  border-color: rgba(217,249,157,0.34);
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  body { cursor: auto; }
  body a, body button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none !important; }
}


/* Project section refinements */
.section-subtitle {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
  margin-top: -12px;
}

.project-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.project-card p {
  flex: 1;
}

.project-card h3 {
  letter-spacing: -0.02em;
}

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* Cursor visibility fix */
body {
  cursor: auto;
}

.cursor-dot,
.cursor-outline,
.custom-cursor,
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 1;
  visibility: visible;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.cursor-outline,
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cursor-outline.hover,
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 1);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-outline,
  .custom-cursor,
  .cursor,
  .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}


/* Sectioned project layout */
.project-sections {
  display: grid;
  gap: 34px;
}

.project-category {
  position: relative;
}

.project-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.project-category-heading h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.project-category-heading span {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.project-link:visited {
  color: inherit;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.project-link:hover .project-cta {
  transform: translateX(6px);
}

.project-link:hover h3 {
  color: var(--accent);
}

.project-card {
  min-height: 285px;
}

.section-subtitle code {
  color: var(--accent);
  font-size: 0.92em;
}

@media (max-width: 720px) {
  .project-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.project-link {
  cursor: pointer;
}


/* Beautified project category headings */
.project-sections {
  gap: 44px;
}

.project-category {
  padding-top: 4px;
}

.project-category-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

.project-category-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-category-heading h3::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
}

.project-category-heading h3 span {
  display: inline-flex;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

.project-category-heading span:not(h3 span) {
  display: none !important;
}

.project-category + .project-category {
  position: relative;
}

.project-category + .project-category::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.7;
}

@media (max-width: 720px) {
  .project-category-heading {
    align-items: flex-start;
    flex-direction: row;
  }

  .project-category-heading h3::before {
    width: 24px;
  }

  .project-category-heading h3 span {
    padding: 8px 13px;
  }
}


/* Photo enhancements */
.brand-photo {
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-photo {
  width: 116px;
  height: 116px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(140,200,255,0.28);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22), 0 0 0 8px rgba(255,255,255,0.03);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  align-items: center;
}

.about-photo-card {
  padding: 12px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 24px;
}

.about-copy-stack {
  display: grid;
  gap: 16px;
}

.about-copy-stack p {
  margin: 0;
}

@media (max-width: 860px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    max-width: 420px;
  }
}


/* Animated navbar cat widget */
.nav {
  position: relative;
  gap: 18px;
}

.cat-playground {
  position: relative;
  flex: 1;
  height: 54px;
  min-width: 180px;
  margin: 0 18px;
  overflow: hidden;
  pointer-events: none;
}

.nav-cat {
  --cat-x: 12px;
  position: absolute;
  left: 0;
  top: 50%;
  width: 58px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(var(--cat-x), -50%);
  pointer-events: auto;
  cursor: pointer;
  animation: catWalk 12s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25));
}

.cat-body {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 36px;
  height: 30px;
  border-radius: 45% 45% 48% 48%;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset -6px -8px 10px rgba(30,41,59,0.12);
  animation: catBob 1.4s ease-in-out infinite;
}

.cat-tail {
  position: absolute;
  left: 1px;
  top: 15px;
  width: 24px;
  height: 8px;
  border-radius: 999px;
  border-top: 5px solid #cbd5e1;
  transform-origin: right center;
  transform: rotate(22deg);
  animation: tailWag 1.05s ease-in-out infinite;
}

.cat-ear {
  position: absolute;
  top: -7px;
  width: 13px;
  height: 13px;
  background: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.55);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-ear-left {
  left: 4px;
  transform: rotate(-18deg);
}

.cat-ear-right {
  right: 4px;
  transform: rotate(18deg);
}

.cat-face {
  position: absolute;
  inset: 0;
}

.cat-eye {
  position: absolute;
  top: 11px;
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: #0f172a;
  animation: catBlink 4.4s infinite;
}

.cat-eye.left { left: 11px; }
.cat-eye.right { right: 11px; }

.cat-nose {
  position: absolute;
  left: 50%;
  top: 17px;
  width: 5px;
  height: 4px;
  border-radius: 60% 60% 70% 70%;
  background: #fb7185;
  transform: translateX(-50%);
}

.cat-mouth {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%) scale(0.72);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.purr-bubble {
  position: absolute;
  left: 42px;
  top: -3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(217,249,157,0.16);
  border: 1px solid rgba(217,249,157,0.28);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.nav-cat.is-purring .purr-bubble {
  opacity: 1;
  transform: translateY(-4px) scale(1);
}

.nav-cat.is-purring .cat-body {
  animation: catBob 0.25s ease-in-out infinite;
}

.nav-cat:hover .cat-body {
  background: linear-gradient(135deg, #ffffff, #d9f99d);
}

@keyframes catWalk {
  0% { transform: translate(6px, -50%) rotate(0deg); }
  12% { transform: translate(18%, -52%) rotate(-2deg); }
  27% { transform: translate(38%, -48%) rotate(2deg); }
  43% { transform: translate(55%, -52%) rotate(-1deg); }
  58% { transform: translate(72%, -50%) rotate(1deg); }
  75% { transform: translate(50%, -47%) rotate(-2deg); }
  100% { transform: translate(calc(100% - 66px), -50%) rotate(0deg); }
}

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

@keyframes tailWag {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(42deg); }
}

@keyframes catBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}

@media (max-width: 860px) {
  .cat-playground {
    display: none;
  }
}


/* Education + contact polish */
.education-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.education-feature {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.education-feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 15% 0%, rgba(140,200,255,0.18), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(217,249,157,0.11), transparent 38%);
  opacity: 0.9;
  pointer-events: none;
}

.education-feature > * {
  position: relative;
  z-index: 1;
}

.education-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.school-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(140,200,255,0.26), rgba(217,249,157,0.14));
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.edu-chip {
  color: var(--accent-2);
  background: rgba(217,249,157,0.08);
  border: 1px solid rgba(217,249,157,0.18);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.edu-meta span {
  color: var(--muted);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
}

.edu-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.edu-focus span {
  color: var(--accent);
  background: rgba(140,200,255,0.08);
  border: 1px solid rgba(140,200,255,0.18);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-upgraded {
  position: relative;
  overflow: hidden;
  padding: 38px;
  align-items: stretch;
}

.contact-upgraded::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(140,200,255,0.18), transparent 32%),
    radial-gradient(circle at 85% 60%, rgba(217,249,157,0.12), transparent 36%);
  pointer-events: none;
}

.contact-upgraded > * {
  position: relative;
  z-index: 1;
}

.contact-copy {
  max-width: 650px;
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-highlights span {
  color: var(--accent-2);
  background: rgba(217,249,157,0.07);
  border: 1px solid rgba(217,249,157,0.16);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: end;
  min-width: 320px;
}

.contact-mini-card {
  width: 100%;
  max-width: 360px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-mini-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

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

@media (max-width: 900px) {
  .education-showcase {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    justify-items: start;
    min-width: 0;
  }

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


/* Certifications and papers section */
.certifications-section {
  position: relative;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cert-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  min-height: 210px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 15% 0%, rgba(140,200,255,0.17), transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(217,249,157,0.12), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

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

.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.34);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(140,200,255,0.25), rgba(217,249,157,0.12));
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.cert-type {
  display: inline-flex;
  color: var(--accent-2);
  background: rgba(217,249,157,0.07);
  border: 1px solid rgba(217,249,157,0.15);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.cert-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

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

.cert-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.cert-card:hover .cert-arrow {
  transform: translate(4px, -4px);
}

.cert-placeholder {
  opacity: 0.88;
  pointer-events: none;
}

.muted-arrow {
  color: var(--muted);
}

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

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


/* Education logo images */
.school-logo-wrap {
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
}

.school-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.school-logo-usc {
  padding: 6px;
}

.school-logo-pdeu {
  padding: 4px;
}


/* Interactive education hover and click effects */
.education-clickable {
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.education-clickable:hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.36);
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

.education-clickable:hover .school-logo-wrap {
  transform: translateY(-6px) scale(1.08) rotate(-2deg);
  box-shadow: 0 18px 42px rgba(140,200,255,0.18), 0 0 0 8px rgba(255,255,255,0.035);
}

.education-clickable:hover .edu-chip {
  transform: translateY(-4px) scale(1.06);
}

.education-clickable:hover .edu-meta span,
.education-clickable:hover .edu-focus span {
  transform: translateY(-5px) scale(1.055);
  border-color: rgba(217,249,157,0.28);
}

.education-clickable:hover .edu-focus span:nth-child(2) {
  transform: translateY(-9px) scale(1.08);
}

.education-clickable:hover .edu-focus span:nth-child(3) {
  transform: translateY(-6px) scale(1.06);
}

.school-logo-wrap,
.edu-chip,
.edu-meta span,
.edu-focus span {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.education-pop-message {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: rgba(255,255,255,0.92);
  color: #111827;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 16px 38px rgba(0,0,0,0.26);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.education-clickable.show-edu-message .education-pop-message {
  opacity: 1;
  transform: translateY(-4px) scale(1);
}

.education-clickable[data-edu-theme="usc"] .education-pop-message {
  color: #990000;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: rgba(153,0,0,0.18);
}

.education-clickable[data-edu-theme="usc"].show-edu-message {
  box-shadow: 0 24px 70px rgba(153,0,0,0.20);
}

.education-clickable[data-edu-theme="pdeu"] .education-pop-message {
  color: #0f766e;
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  border-color: rgba(15,118,110,0.18);
}

.education-clickable[data-edu-theme="pdeu"].show-edu-message {
  box-shadow: 0 24px 70px rgba(15,118,110,0.18);
}

@media (max-width: 620px) {
  .education-pop-message {
    left: 24px;
    right: auto;
    bottom: 18px;
    max-width: calc(100% - 48px);
  }
}


/* Recent work interactive hover + company links */
.work-clickable {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.work-clickable::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 14% 0%, rgba(140,200,255,0.16), transparent 34%),
    radial-gradient(circle at 92% 70%, rgba(217,249,157,0.10), transparent 38%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.work-clickable > * {
  position: relative;
  z-index: 1;
}

.work-clickable:hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.36);
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

.work-clickable:hover::before {
  opacity: 1;
}

.work-clickable h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-clickable h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.work-clickable:hover h3 a {
  color: var(--accent);
}

.work-link-arrow {
  color: var(--accent);
  font-size: 1.05rem;
  opacity: 0.65;
  transform: translateY(1px);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.work-clickable:hover .work-link-arrow {
  opacity: 1;
  transform: translate(5px, -4px);
}

.work-clickable:hover .date {
  transform: translateY(-4px) scale(1.05);
  color: var(--accent-2);
}

.work-clickable:hover li {
  transform: translateY(-4px);
}

.work-clickable:hover li:nth-child(2) {
  transform: translateY(-7px);
}

.work-clickable:hover li:nth-child(3) {
  transform: translateY(-5px);
}

.work-clickable .date,
.work-clickable li {
  transition: transform 0.25s ease, color 0.25s ease;
}

.work-clickable ul {
  display: grid;
  gap: 8px;
}

.work-clickable li {
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
}

.work-clickable:hover li {
  border-color: rgba(217,249,157,0.14);
  background: rgba(217,249,157,0.04);
}

@media (max-width: 700px) {
  .work-clickable h3 {
    align-items: flex-start;
  }
}


/* Shiny hover effect for Recent Work bullet chips */
.work-clickable li {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.work-clickable li::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255,255,255,0.34) 48%, rgba(217,249,157,0.22) 52%, transparent 64%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.65s ease, opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}

.work-clickable li::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(140,200,255,0.0), rgba(217,249,157,0.45), rgba(140,200,255,0.0));
  opacity: 0;
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.25s ease;
}

.work-clickable li:hover {
  color: var(--text);
  border-color: rgba(217,249,157,0.38);
  background: rgba(217,249,157,0.075);
  box-shadow:
    0 0 0 1px rgba(217,249,157,0.08),
    0 12px 32px rgba(217,249,157,0.10),
    inset 0 1px 0 rgba(255,255,255,0.16);
  transform: translateY(-7px) scale(1.012);
}

.work-clickable li:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.work-clickable li:hover::after {
  opacity: 1;
}

.work-clickable:hover li:hover {
  border-color: rgba(217,249,157,0.42);
}


/* Fix Recent Work bullet spacing consistency */
.work-clickable ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin-top: 16px;
  list-style: none;
}

.work-clickable li {
  margin: 0;
  transform: none;
}

.work-clickable:hover li,
.work-clickable:hover li:nth-child(2),
.work-clickable:hover li:nth-child(3) {
  transform: none;
}

.work-clickable li:hover {
  transform: translateY(-3px) scale(1.006);
}

.work-clickable li + li {
  margin-top: 0;
}


/* Profile photo dropdown + add-cat menu */
.profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 50;
}

.profile-menu-trigger {
  border: 0;
  cursor: pointer;
}

.profile-menu-trigger:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 17px;
  width: 14px;
  height: 14px;
  background: rgba(15, 23, 42, 0.94);
  border-left: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}

.profile-menu-wrap.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: rgba(140,200,255,0.10);
  color: var(--accent-2);
  transform: translateX(3px);
}

.cat-playground.cat-hidden {
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
}

.cat-playground.cat-added {
  opacity: 1;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.cat-playground.cat-added .nav-cat {
  pointer-events: auto;
}

.cat-playground.cat-added .nav-cat {
  animation: catWalk 12s ease-in-out infinite alternate, catArrival 0.55s ease-out 1;
}

@keyframes catArrival {
  0% {
    opacity: 0;
    filter: blur(4px) drop-shadow(0 8px 14px rgba(0,0,0,0.25));
  }
  70% {
    opacity: 1;
    transform: translate(24px, -50%) scale(1.15);
  }
  100% {
    opacity: 1;
  }
}

.add-cat-btn.cat-added-label {
  color: var(--accent-2);
}


/* Wobbly unaligned intro photo */
.about-photo-card {
  transform: rotate(-3.5deg) translateY(8px);
  animation: photoWobble 6.5s ease-in-out infinite;
  transform-origin: 48% 52%;
}

.about-photo-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(217,249,157,0.18);
  transform: rotate(4deg) translate(10px, 10px);
  pointer-events: none;
  opacity: 0.75;
}

.about-photo {
  transform: rotate(1.5deg) scale(1.015);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.about-photo-card:hover {
  animation-play-state: paused;
  transform: rotate(-5deg) translateY(-4px) translateX(6px) scale(1.02);
}

.about-photo-card:hover .about-photo {
  transform: rotate(3deg) scale(1.045);
  filter: saturate(1.12) contrast(1.05);
}

@keyframes photoWobble {
  0%, 100% {
    transform: rotate(-3.5deg) translateY(8px) translateX(-2px);
  }
  25% {
    transform: rotate(-1.8deg) translateY(-4px) translateX(5px);
  }
  50% {
    transform: rotate(-4.8deg) translateY(4px) translateX(8px);
  }
  75% {
    transform: rotate(-2.4deg) translateY(-7px) translateX(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-photo-card {
    animation: none;
  }
}


/* Animated About heading words */
.engineer-word,
.messy-word,
.systems-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.engineer-word {
  color: var(--text);
  animation: engineChug 2.6s ease-in-out infinite;
  transform-origin: bottom left;
}

.engineer-word::after {
  content: "🚂";
  position: absolute;
  left: 50%;
  top: -34px;
  font-size: 0.48em;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.25));
  animation: engineRoll 3.2s ease-in-out infinite;
}

.steam-puff {
  position: absolute;
  top: -32px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  filter: blur(0.2px);
  opacity: 0;
  pointer-events: none;
}

.steam-1 {
  left: 64%;
  animation: steamPuff 2.2s ease-out infinite;
}

.steam-2 {
  left: 71%;
  animation: steamPuff 2.2s ease-out infinite 0.55s;
}

.messy-word {
  color: var(--accent-2);
  text-shadow: 0 0 24px rgba(217,249,157,0.18);
  animation: messyWobble 1.45s ease-in-out infinite;
  transform-origin: center;
}

.messy-word::before,
.messy-word::after {
  content: "~";
  position: absolute;
  color: rgba(217,249,157,0.55);
  font-weight: 900;
  font-size: 0.55em;
  animation: messySquiggle 1.2s ease-in-out infinite;
}

.messy-word::before {
  left: -18px;
  top: -8px;
}

.messy-word::after {
  right: -18px;
  bottom: -5px;
  animation-delay: 0.35s;
}

.systems-word {
  color: var(--accent);
  padding-right: 44px;
  text-shadow: 0 0 24px rgba(140,200,255,0.16);
}

.gear {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(140,200,255,0.42));
  pointer-events: none;
}

.gear-one {
  right: 18px;
  top: -14px;
  font-size: 0.48em;
  animation: gearSpin 2.4s linear infinite;
}

.gear-two {
  right: -4px;
  bottom: -8px;
  font-size: 0.34em;
  color: var(--accent-2);
  animation: gearSpinReverse 1.8s linear infinite;
}

@keyframes engineChug {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-1px) rotate(-0.45deg); }
  40% { transform: translateY(1px) rotate(0.4deg); }
  60% { transform: translateY(-1px) rotate(0.25deg); }
  80% { transform: translateY(1px) rotate(-0.25deg); }
}

@keyframes engineRoll {
  0%, 100% { transform: translateX(-58%) translateY(0) rotate(-2deg); }
  50% { transform: translateX(-42%) translateY(-2px) rotate(3deg); }
}

@keyframes steamPuff {
  0% { transform: translate(0, 0) scale(0.45); opacity: 0; }
  18% { opacity: 0.72; }
  70% { opacity: 0.22; }
  100% { transform: translate(16px, -24px) scale(1.8); opacity: 0; }
}

@keyframes messyWobble {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  18% { transform: rotate(-1.7deg) translateY(-1px); }
  36% { transform: rotate(1.5deg) translateY(1px); }
  54% { transform: rotate(-1.1deg) translateY(-1px); }
  72% { transform: rotate(0.9deg) translateY(1px); }
}

@keyframes messySquiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
  50% { transform: translateY(-4px) rotate(12deg); opacity: 0.85; }
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gearSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@media (max-width: 640px) {
  .engineer-word::after {
    top: -26px;
  }

  .steam-puff {
    top: -25px;
  }

  .systems-word {
    padding-right: 32px;
  }

  .gear-one {
    right: 12px;
  }

  .gear-two {
    right: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .engineer-word,
  .engineer-word::after,
  .steam-puff,
  .messy-word,
  .messy-word::before,
  .messy-word::after,
  .gear-one,
  .gear-two {
    animation: none !important;
  }
}


/* Interactive About paragraph section */
.interactive-about-copy {
  position: relative;
  padding: 4px;
  border-radius: 28px;
}

.about-glow-layer {
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at var(--about-glow-x, 30%) var(--about-glow-y, 35%), rgba(140,200,255,0.16), transparent 34%),
    radial-gradient(circle at calc(var(--about-glow-x, 30%) + 18%) calc(var(--about-glow-y, 35%) + 14%), rgba(217,249,157,0.10), transparent 30%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 0;
}

.interactive-about-copy:hover .about-glow-layer {
  opacity: 1;
}

.interactive-about-copy > *:not(.about-glow-layer) {
  position: relative;
  z-index: 1;
}

.about-keyword {
  position: relative;
  display: inline-flex;
  color: var(--accent-2);
  font-weight: 850;
  border-bottom: 1px dashed rgba(217,249,157,0.45);
  cursor: help;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.about-keyword:hover {
  transform: translateY(-2px);
  color: #f0fdb7;
  text-shadow: 0 0 20px rgba(217,249,157,0.28);
}

.about-keyword::after,
.skill-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255,255,255,0.13);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  box-shadow: 0 16px 38px rgba(0,0,0,0.28);
  transform: translate(-50%, 8px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.about-keyword:hover::after,
.skill-pill:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.skill-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 3px 4px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(140,200,255,0.075);
  border: 1px solid rgba(140,200,255,0.18);
  font-weight: 850;
  font-size: 0.94em;
  cursor: help;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.skill-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.28), transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.skill-pill:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(217,249,157,0.34);
  background: rgba(217,249,157,0.075);
  box-shadow: 0 12px 28px rgba(140,200,255,0.11);
}

.skill-pill:hover::before {
  transform: translateX(120%);
}

.build-toggle {
  margin-top: 22px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.build-toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.build-tab {
  border: 1px solid rgba(140,200,255,0.18);
  background: rgba(140,200,255,0.055);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.build-tab:hover {
  transform: translateY(-3px);
  color: var(--text);
}

.build-tab.active {
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(140,200,255,0.14);
}

.build-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15,23,42,0.32);
  border: 1px solid rgba(255,255,255,0.07);
}

.build-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.build-icon {
  font-size: 1.35rem;
  line-height: 1;
  animation: buildIconFloat 2.8s ease-in-out infinite;
}

@keyframes buildIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-4deg); }
}

@media (max-width: 620px) {
  .about-keyword::after,
  .skill-pill::after {
    display: none;
  }

  .build-panel {
    grid-template-columns: 1fr;
  }
}


/* Simplified About section cleanup */
.simple-about-copy {
  padding: 0;
  border-radius: 0;
}

.simple-about-copy .about-glow-layer,
.simple-about-copy .build-toggle,
.simple-about-copy .build-toggle-buttons,
.simple-about-copy .build-panel {
  display: none !important;
}

.about-line-group {
  display: grid;
  gap: 16px;
}

.about-main-line {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.85;
}

.simple-about-copy p {
  max-width: 760px;
}

.simple-about-copy .about-keyword {
  display: inline;
  color: var(--accent-2);
  font-weight: 850;
  border-bottom: 1px solid rgba(217,249,157,0.35);
  cursor: default;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.simple-about-copy .about-keyword:hover {
  color: var(--text);
  border-color: var(--accent-2);
  transform: none;
  text-shadow: none;
}

.simple-about-copy .about-keyword::after {
  display: none !important;
}

.about-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
  max-width: 760px;
}

.simple-about-copy .skill-pill {
  margin: 0;
  padding: 7px 12px;
  color: var(--accent);
  background: rgba(140,200,255,0.07);
  border: 1px solid rgba(140,200,255,0.18);
  box-shadow: none;
  cursor: default;
  overflow: hidden;
}

.simple-about-copy .skill-pill::before {
  opacity: 0;
  transform: translateX(-130%);
}

.simple-about-copy .skill-pill::after {
  display: none !important;
}

.simple-about-copy .skill-pill:hover {
  transform: translateY(-3px);
  color: var(--text);
  background: rgba(140,200,255,0.12);
  border-color: rgba(217,249,157,0.35);
  box-shadow: 0 10px 26px rgba(140,200,255,0.10);
}

.simple-about-copy .skill-pill:hover::before {
  opacity: 1;
  transform: translateX(130%);
}

.simple-build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  max-width: 760px;
}

.simple-build-grid article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.simple-build-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(140,200,255,0.24);
  background: rgba(140,200,255,0.06);
}

.simple-build-grid span {
  display: inline-flex;
  color: var(--accent-2);
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.simple-build-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .simple-build-grid {
    grid-template-columns: 1fr;
  }

  .about-main-line {
    line-height: 1.7;
  }
}


/* Move animated tech chips to Skills section */
.about-skill-row {
  display: none !important;
}

.toolkit-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 26px;
  max-width: 920px;
}

.tool-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(140,200,255,0.07);
  border: 1px solid rgba(140,200,255,0.18);
  font-weight: 850;
  font-size: 0.95rem;
  overflow: hidden;
  cursor: default;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tool-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 36%,
    rgba(255,255,255,0.28) 48%,
    rgba(217,249,157,0.22) 54%,
    transparent 68%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-130%);
  transition: transform 0.58s ease, opacity 0.18s ease;
  pointer-events: none;
}

.tool-chip:hover {
  transform: translateY(-4px) scale(1.04);
  color: var(--text);
  background: rgba(140,200,255,0.12);
  border-color: rgba(217,249,157,0.34);
  box-shadow: 0 12px 28px rgba(140,200,255,0.10);
}

.tool-chip:hover::before {
  opacity: 1;
  transform: translateX(130%);
}

@media (max-width: 680px) {
  .toolkit-chip-cloud {
    gap: 8px;
    margin-bottom: 22px;
  }

  .tool-chip {
    font-size: 0.9rem;
    padding: 7px 12px;
  }
}


/* Skills cards with animated mini chips */
.toolkit-chip-cloud {
  display: none !important;
}

.skill-card-enhanced {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-mini-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(140,200,255,0.07);
  border: 1px solid rgba(140,200,255,0.18);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  cursor: default;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.skill-mini-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,0.26) 48%,
    rgba(217,249,157,0.18) 54%,
    transparent 66%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-135%);
  transition: transform 0.58s ease, opacity 0.18s ease;
  pointer-events: none;
}

.skill-mini-chip:hover {
  transform: translateY(-4px) scale(1.04);
  color: var(--text);
  background: rgba(140,200,255,0.12);
  border-color: rgba(217,249,157,0.34);
  box-shadow: 0 12px 24px rgba(140,200,255,0.10);
}

.skill-mini-chip:hover::before {
  opacity: 1;
  transform: translateX(130%);
}

@media (max-width: 680px) {
  .skill-mini-list {
    gap: 8px;
  }

  .skill-mini-chip {
    font-size: 0.84rem;
    padding: 7px 11px;
  }
}


/* Toolkit section: hide card shine until hover + add education-style chip enlargement */
.skill-card-enhanced {
  position: relative;
  overflow: hidden;
}

.skill-card-enhanced::after {
  opacity: 0;
  transform: translateX(-120%) rotate(8deg);
}

.skill-card-enhanced:hover::after {
  opacity: 1;
  transform: translateX(120%) rotate(8deg);
}

.skill-card-enhanced .skill-mini-chip {
  transition:
    transform 0.24s ease,
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.skill-card-enhanced:hover .skill-mini-chip {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(217,249,157,0.26);
  background: rgba(140,200,255,0.10);
  box-shadow: 0 10px 22px rgba(140,200,255,0.08);
}

.skill-card-enhanced:hover .skill-mini-chip:nth-child(2n) {
  transform: translateY(-6px) scale(1.05);
}

.skill-card-enhanced:hover .skill-mini-chip:nth-child(3n) {
  transform: translateY(-5px) scale(1.045);
}

.skill-card-enhanced .skill-mini-chip:hover {
  transform: translateY(-7px) scale(1.07);
  color: var(--text);
  background: rgba(140,200,255,0.14);
  border-color: rgba(217,249,157,0.36);
  box-shadow: 0 14px 28px rgba(140,200,255,0.12);
}


/* About keyword hover popups */
.simple-about-copy .about-keyword-popup {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  outline: none;
}

.simple-about-copy .about-keyword-label {
  display: inline-block;
  color: inherit;
  border-bottom: 1px solid rgba(217,249,157,0.35);
}

.simple-about-copy .about-keyword-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  min-width: 280px;
  max-width: 340px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 18px 42px rgba(0,0,0,0.30);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
  pointer-events: none;
}

.simple-about-copy .about-keyword-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.97);
  border-left: 1px solid rgba(255,255,255,0.11);
  border-top: 1px solid rgba(255,255,255,0.11);
  transform: rotate(45deg);
}

.simple-about-copy .about-popup-title {
  display: block;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.simple-about-copy .about-popup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simple-about-copy .about-keyword-popup:hover .about-keyword-panel,
.simple-about-copy .about-keyword-popup:focus-within .about-keyword-panel,
.simple-about-copy .about-keyword-popup:focus .about-keyword-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.simple-about-copy .about-keyword-popup:hover .about-keyword-label,
.simple-about-copy .about-keyword-popup:focus .about-keyword-label,
.simple-about-copy .about-keyword-popup:focus-within .about-keyword-label {
  color: var(--text);
  border-color: var(--accent-2);
}

.simple-about-copy .about-keyword-panel .skill-mini-chip {
  font-size: 0.8rem;
  padding: 6px 10px;
}

@media (max-width: 760px) {
  .simple-about-copy .about-keyword-panel {
    left: 0;
    right: auto;
    min-width: 240px;
    max-width: min(300px, 80vw);
  }
}


/* Ensure every toolkit chip animates on skill-card hover */
.skill-card-enhanced .skill-mini-list {
  align-items: flex-start;
}

.skill-card-enhanced .skill-mini-chip {
  display: inline-flex;
  will-change: transform;
  transform: translateY(0) scale(1);
}

.skill-card-enhanced:hover .skill-mini-chip {
  transform: translateY(-5px) scale(1.045);
  border-color: rgba(217,249,157,0.28);
  background: rgba(140,200,255,0.105);
  box-shadow: 0 10px 22px rgba(140,200,255,0.09);
}

.skill-card-enhanced:hover .skill-mini-chip:nth-child(1) { transform: translateY(-5px) scale(1.045); transition-delay: 0ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(2) { transform: translateY(-6px) scale(1.05); transition-delay: 20ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(3) { transform: translateY(-5px) scale(1.045); transition-delay: 40ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(4) { transform: translateY(-6px) scale(1.05); transition-delay: 60ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(5) { transform: translateY(-5px) scale(1.045); transition-delay: 80ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(6) { transform: translateY(-6px) scale(1.05); transition-delay: 100ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(7) { transform: translateY(-5px) scale(1.045); transition-delay: 120ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(8) { transform: translateY(-6px) scale(1.05); transition-delay: 140ms; }
.skill-card-enhanced:hover .skill-mini-chip:nth-child(9) { transform: translateY(-5px) scale(1.045); transition-delay: 160ms; }

.skill-card-enhanced .skill-mini-chip:hover {
  transform: translateY(-9px) scale(1.08) !important;
  color: var(--text);
  border-color: rgba(217,249,157,0.42);
  background: rgba(217,249,157,0.08);
  box-shadow: 0 16px 32px rgba(140,200,255,0.14);
  transition-delay: 0ms;
}

/* Keep the shine fully hidden until the chip itself is hovered */
.skill-card-enhanced .skill-mini-chip::before {
  opacity: 0;
  transform: translateX(-140%);
}

.skill-card-enhanced .skill-mini-chip:hover::before {
  opacity: 1;
  transform: translateX(140%);
}


/* Toolkit category icons + skill chip tooltips */
.skill-card-enhanced h3 {
  display: flex;
  align-items: center;
  gap: 11px;
}

.skill-category-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  background: rgba(217,249,157,0.07);
  border: 1px solid rgba(217,249,157,0.16);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.skill-card-enhanced:hover .skill-category-icon {
  color: var(--text);
  background: rgba(140,200,255,0.12);
  border-color: rgba(140,200,255,0.28);
}

.skill-card-enhanced:hover .icon-code {
  animation: codeBounce 0.72s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-screen {
  animation: screenFlicker 1.1s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-server {
  animation: serverStack 0.9s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-brain {
  animation: brainPulse 1.05s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-cloud {
  animation: cloudFloat 1.55s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-database {
  animation: databaseSpin 1.15s ease-in-out infinite;
}

.skill-mini-chip[data-skill-tooltip] {
  overflow: visible;
}

.skill-mini-chip[data-skill-tooltip]::after {
  content: attr(data-skill-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  transform: translate(-50%, 7px) scale(0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.17s ease, transform 0.17s ease, visibility 0.17s ease;
  z-index: 80;
}

.skill-mini-chip[data-skill-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

@keyframes codeBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-4deg); }
}

@keyframes screenFlicker {
  0%, 100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); }
  45% { transform: scale(1.06); box-shadow: 0 0 18px rgba(140,200,255,0.18); }
}

@keyframes serverStack {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-3px); }
  66% { transform: translateY(2px); }
}

@keyframes brainPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(217,249,157,0)); }
  50% { transform: scale(1.13); filter: drop-shadow(0 0 12px rgba(217,249,157,0.35)); }
}

@keyframes cloudFloat {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(4px) translateY(-4px); }
}

@keyframes databaseSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(9deg) scale(1.08); }
}

@media (max-width: 700px) {
  .skill-mini-chip[data-skill-tooltip]::after {
    display: none;
  }

  .skill-category-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-card-enhanced:hover .skill-category-icon {
    animation: none !important;
  }
}


/* Toolkit tooltip overflow + full-card scale + icon tilt */
.skill-card-enhanced {
  overflow: visible !important;
  z-index: 1;
  transform-origin: center center;
}

.skill-card-enhanced:hover {
  transform: translateY(-10px) scale(1.02) !important;
  z-index: 10;
}

.skill-card-enhanced::after {
  inset: 0 !important;
  border-radius: inherit;
  opacity: 0;
  transform: translateX(-120%) rotate(8deg);
  clip-path: inset(0 round 28px);
}

.skill-card-enhanced:hover::after {
  opacity: 1;
  transform: translateX(120%) rotate(8deg);
}

.skill-card-enhanced .skill-mini-list {
  overflow: visible;
}

.skill-card-enhanced .skill-mini-chip,
.skill-mini-chip[data-skill-tooltip] {
  overflow: visible !important;
}

.skill-mini-chip[data-skill-tooltip]::after {
  z-index: 120;
}

.skill-card-enhanced:hover .skill-category-icon {
  transform: rotate(-8deg) scale(1.08);
}

.skill-card-enhanced:hover .icon-code {
  animation: codeBounceTilt 0.78s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-screen {
  animation: screenTilt 1.1s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-server {
  animation: serverTilt 0.95s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-brain {
  animation: brainTilt 1.05s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-cloud {
  animation: cloudTilt 1.55s ease-in-out infinite;
}

.skill-card-enhanced:hover .icon-database {
  animation: databaseTilt 1.15s ease-in-out infinite;
}

@keyframes codeBounceTilt {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1.04); }
  50% { transform: translateY(-4px) rotate(-12deg) scale(1.1); }
}

@keyframes screenTilt {
  0%, 100% { transform: rotate(-6deg) scale(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); }
  45% { transform: rotate(-10deg) scale(1.1); box-shadow: 0 0 18px rgba(140,200,255,0.18); }
}

@keyframes serverTilt {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1.04); }
  33% { transform: translateY(-3px) rotate(-10deg) scale(1.08); }
  66% { transform: translateY(2px) rotate(-4deg) scale(1.06); }
}

@keyframes brainTilt {
  0%, 100% { transform: rotate(-6deg) scale(1.04); filter: drop-shadow(0 0 0 rgba(217,249,157,0)); }
  50% { transform: rotate(-10deg) scale(1.14); filter: drop-shadow(0 0 12px rgba(217,249,157,0.35)); }
}

@keyframes cloudTilt {
  0%, 100% { transform: translateX(0) translateY(0) rotate(-6deg) scale(1.04); }
  50% { transform: translateX(4px) translateY(-4px) rotate(-11deg) scale(1.1); }
}

@keyframes databaseTilt {
  0%, 100% { transform: rotate(-6deg) scale(1.04); }
  50% { transform: rotate(6deg) scale(1.1); }
}


/* Remove shine completely from Technical toolkit section */
.skill-card-enhanced::after,
.skill-card-enhanced:hover::after,
.skill-card-enhanced .skill-mini-chip::before,
.skill-card-enhanced .skill-mini-chip:hover::before,
.skill-card-enhanced .skill-mini-chip[data-skill-tooltip]::before,
.skill-card-enhanced .skill-mini-chip[data-skill-tooltip]:hover::before {
  display: none !important;
  opacity: 0 !important;
  transform: none !important;
  background: none !important;
}

.skill-card-enhanced .skill-mini-chip {
  isolation: auto;
}


/* Interactive hero name + role rotator + 3D profile card */
.hero-name {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #8cc8ff, #d9f99d, #8cc8ff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroNameFlowIdle 7s ease-in-out infinite;
}

.hero-name::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0.05em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(140,200,255,0.75), rgba(217,249,157,0.65), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.hero-name:hover {
  animation: heroNameFlowHover 1.45s linear infinite;
}

.hero-name:hover::after {
  transform: scaleX(1);
}

.hero-letter {
  display: inline-block;
  transition: transform 0.22s ease, filter 0.22s ease;
  transition-delay: calc(var(--i) * 18ms);
}

.hero-name:hover .hero-letter {
  transform: translateY(-0.085em);
  filter: drop-shadow(0 0 14px rgba(140,200,255,0.22));
}

.role-rotator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 12px 0 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(140,200,255,0.075);
  border: 1px solid rgba(140,200,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 800;
}

.role-prefix {
  color: var(--accent-2);
  font-size: 0.9rem;
}

.role-text {
  color: var(--text);
  min-width: 190px;
  position: relative;
}

.role-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: var(--accent-2);
  transform: translateY(2px);
  animation: caretBlink 0.85s steps(2, start) infinite;
}

.hero-tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-tilt-card:hover {
  border-color: rgba(140,200,255,0.42);
  box-shadow: 0 34px 90px rgba(0,0,0,0.32), 0 0 40px rgba(140,200,255,0.08);
}

.hero-tilt-card > * {
  transform: translateZ(18px);
}

.hero-tilt-card .quick-stats div {
  transform: translateZ(26px);
}

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

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

@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (max-width: 720px) {
  .hero-name {
    display: inline;
  }

  .hero-letter {
    display: inline;
  }

  .role-rotator {
    display: flex;
    width: 100%;
    max-width: 330px;
  }

  .role-text {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name,
  .role-text::after {
    animation: none !important;
  }

  .hero-letter,
  .hero-tilt-card {
    transition: none !important;
  }
}


/* Fix hero name wrapping: keep Pathik and Viramgama intact */
.hero-name {
  display: inline !important;
  white-space: normal;
}

.hero-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-space {
  display: inline;
}

.hero-letter {
  display: inline-block;
}

@media (max-width: 720px) {
  .hero-name {
    display: inline !important;
  }

  .hero-word {
    display: inline-block;
    white-space: nowrap;
  }

  .hero-letter {
    display: inline-block;
  }
}


/* Fluid hero description text */
.hero-text-fluid {
  position: relative;
  max-width: 680px;
}

.fluid-word {
  display: inline-block;
  will-change: transform, color;
  animation: fluidTextDrift 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 90ms);
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.hero-text-fluid:hover .fluid-word {
  animation-play-state: paused;
  transform: translateY(0) !important;
  color: var(--text);
  text-shadow: 0 0 18px rgba(140,200,255,0.16);
}

.hero-text-fluid::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transition: width 0.35s ease;
}

.hero-text-fluid:hover::after {
  width: 82%;
}

@keyframes fluidTextDrift {
  0%, 100% {
    transform: translateY(0);
  }
  28% {
    transform: translateY(-3px);
  }
  56% {
    transform: translateY(2px);
  }
  78% {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fluid-word {
    animation: none !important;
  }
}

/* Multi-animal navbar additions: cat toggle fix + corgi + parrot */
.nav-animal.animal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.cat-playground.cat-added .nav-animal:not(.animal-hidden) {
  opacity: 1;
  visibility: visible;
}

.nav-dog,
.nav-parrot {
  position: absolute;
  top: 50%;
  width: 62px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(10px, -50%);
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.24));
}

.cat-playground.cat-added .nav-dog:not(.animal-hidden) {
  animation: dogRun 13s ease-in-out infinite alternate, catArrival 0.55s ease-out 1;
  animation-delay: -3.5s, 0s;
}

.cat-playground.cat-added .nav-parrot:not(.animal-hidden) {
  animation: parrotFly 10s ease-in-out infinite alternate, catArrival 0.55s ease-out 1;
  animation-delay: -6s, 0s;
}

.dog-body {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 42px;
  height: 26px;
  border-radius: 46% 46% 42% 42%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 58%, #b45309);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: inset -7px -8px 10px rgba(120,53,15,0.18);
  animation: dogBounce 1.1s ease-in-out infinite;
}

.dog-tail {
  position: absolute;
  left: 0;
  top: 20px;
  width: 22px;
  height: 9px;
  border-radius: 999px;
  border-top: 6px solid #f59e0b;
  transform-origin: right center;
  transform: rotate(28deg);
  animation: dogTailWag 0.62s ease-in-out infinite;
}

.dog-ear {
  position: absolute;
  top: -7px;
  width: 12px;
  height: 15px;
  border-radius: 70% 70% 40% 40%;
  background: #92400e;
}

.dog-ear-left { left: 5px; transform: rotate(-18deg); }
.dog-ear-right { right: 5px; transform: rotate(18deg); }

.dog-face { position: absolute; inset: 0; }

.dog-eye {
  position: absolute;
  top: 8px;
  width: 4px;
  height: 5px;
  border-radius: 999px;
  background: #111827;
}

.dog-eye.left { left: 12px; }
.dog-eye.right { right: 12px; }

.dog-snout {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 16px;
  height: 10px;
  border-radius: 999px;
  background: #fde68a;
  transform: translateX(-50%);
}

.dog-nose {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 6px;
  height: 4px;
  border-radius: 60%;
  background: #111827;
  transform: translateX(-50%);
}

.dog-mouth {
  position: absolute;
  left: 50%;
  top: 16px;
  color: #78350f;
  font-size: 11px;
  font-weight: 900;
  transform: translateX(-50%);
}

.nav-dog:hover .dog-body {
  background: linear-gradient(135deg, #fde68a, #f59e0b 58%, #92400e);
}

.parrot-body {
  position: absolute;
  left: 19px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 54% 46% 50% 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a 55%, #15803d);
  border: 1px solid rgba(255,255,255,0.45);
  animation: parrotBob 0.9s ease-in-out infinite;
}

.parrot-head {
  position: absolute;
  left: 13px;
  top: -8px;
  width: 19px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #16a34a);
}

.parrot-eye {
  position: absolute;
  right: 5px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0f172a;
}

.parrot-beak {
  position: absolute;
  right: -8px;
  top: 7px;
  width: 10px;
  height: 8px;
  background: #f97316;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.parrot-wing {
  position: absolute;
  left: 17px;
  top: 19px;
  width: 24px;
  height: 14px;
  border-radius: 70% 20% 70% 30%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  transform-origin: right center;
  animation: parrotWing 0.45s ease-in-out infinite;
  z-index: 2;
}

.parrot-tail {
  position: absolute;
  left: 8px;
  top: 27px;
  width: 22px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transform: rotate(28deg);
}

.nav-parrot:hover .parrot-body,
.nav-parrot:hover .parrot-head {
  filter: brightness(1.14);
}

.animal-bubble {
  position: absolute;
  left: 44px;
  top: -4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(140,200,255,0.15);
  border: 1px solid rgba(140,200,255,0.28);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.nav-animal.is-talking .animal-bubble,
.nav-animal.is-talking .purr-bubble {
  opacity: 1;
  transform: translateY(-4px) scale(1);
}

.nav-dog.is-talking .dog-body,
.nav-parrot.is-talking .parrot-wing {
  animation-duration: 0.22s;
}

.add-cat-btn.animal-added-label,
.add-dog-btn.animal-added-label,
.add-parrot-btn.animal-added-label {
  color: var(--accent-2);
}

@keyframes dogRun {
  0% { transform: translate(18px, -50%) rotate(0deg); }
  20% { transform: translate(24%, -47%) rotate(2deg); }
  42% { transform: translate(47%, -52%) rotate(-2deg); }
  67% { transform: translate(74%, -48%) rotate(1deg); }
  100% { transform: translate(calc(100% - 70px), -50%) rotate(0deg); }
}

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

@keyframes dogTailWag {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(52deg); }
}

@keyframes parrotFly {
  0% { transform: translate(8px, -58%) rotate(-4deg); }
  24% { transform: translate(30%, -68%) rotate(4deg); }
  48% { transform: translate(56%, -43%) rotate(-2deg); }
  74% { transform: translate(79%, -62%) rotate(3deg); }
  100% { transform: translate(calc(100% - 68px), -50%) rotate(-3deg); }
}

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

@keyframes parrotWing {
  0%, 100% { transform: rotate(-16deg) scaleY(0.88); }
  50% { transform: rotate(18deg) scaleY(1.08); }
}


/* JS-driven animal playground motion: keeps cat, corgi, and parrot from overlapping. */
.nav-cat,
.nav-dog,
.nav-parrot {
  --animal-x: 12px;
  --animal-y: 0px;
  --animal-tilt: 0deg;
  transform: translate(var(--animal-x), calc(-50% + var(--animal-y))) rotate(var(--animal-tilt));
  will-change: transform;
}

.nav-cat,
.cat-playground.cat-added .nav-cat,
.cat-playground.cat-added .nav-dog:not(.animal-hidden),
.cat-playground.cat-added .nav-parrot:not(.animal-hidden),
.cat-playground.cat-added .nav-animal:not(.animal-hidden) {
  animation-name: none;
}

.cat-playground.cat-added .nav-animal:not(.animal-hidden) {
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* Meaning-based Technical Toolkit interactions */
.toolkit-section {
  position: relative;
}

.toolkit-heading .section-subtitle {
  max-width: 780px;
}

.toolkit-grid {
  align-items: stretch;
}

.toolkit-card {
  position: relative;
  min-height: 275px;
  padding: 24px;
  overflow: visible !important;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toolkit-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(217,249,157,0.11), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(140,200,255,0.11), transparent 32%);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: -1;
}

.toolkit-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.toolkit-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toolkit-card-top h3 {
  margin: 0;
  min-width: 0;
}

.toolkit-flow {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: -4px 0 2px;
  opacity: 0.72;
  transform: translateY(2px);
  transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.toolkit-card:hover .toolkit-flow {
  color: var(--accent-2);
  opacity: 1;
  transform: translateY(0);
}

.skill-micro-scene {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 54px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  opacity: 0.82;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.toolkit-card:hover .skill-micro-scene {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(217,249,157,0.22);
  background: rgba(15, 23, 42, 0.52);
}

/* Languages: code lines + blinking cursor */
.scene-code .code-line {
  position: absolute;
  left: 14px;
  height: 5px;
  border-radius: 999px;
  background: rgba(140,200,255,0.45);
  transform-origin: left center;
}
.scene-code .code-line.short { top: 17px; width: 32px; }
.scene-code .code-line.long { top: 31px; width: 52px; background: rgba(217,249,157,0.45); }
.scene-code .code-cursor {
  position: absolute;
  top: 15px;
  left: 50px;
  width: 3px;
  height: 25px;
  border-radius: 999px;
  background: var(--accent-2);
}
.toolkit-languages:hover .scene-code .code-line.short { animation: codeTypeShort 1.15s ease-in-out infinite; }
.toolkit-languages:hover .scene-code .code-line.long { animation: codeTypeLong 1.15s ease-in-out infinite 0.13s; }
.toolkit-languages:hover .scene-code .code-cursor { animation: cursorBlink 0.72s steps(2, start) infinite; }

/* Frontend: React-like orbit */
.scene-orbit .orbit-core {
  position: absolute;
  inset: 20px 37px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(217,249,157,0.42);
}
.scene-orbit .orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  left: 40px;
  top: 23px;
  transform-origin: 4px 4px;
}
.scene-orbit .orbit-dot.one { transform: rotate(0deg) translateX(27px); }
.scene-orbit .orbit-dot.two { transform: rotate(120deg) translateX(27px); }
.scene-orbit .orbit-dot.three { transform: rotate(240deg) translateX(27px); }
.toolkit-frontend:hover .scene-orbit .orbit-dot.one { animation: orbitOne 1.8s linear infinite; }
.toolkit-frontend:hover .scene-orbit .orbit-dot.two { animation: orbitTwo 1.8s linear infinite; }
.toolkit-frontend:hover .scene-orbit .orbit-dot.three { animation: orbitThree 1.8s linear infinite; }

/* Backend: request moving through API */
.scene-api .api-node {
  position: absolute;
  top: 19px;
  width: 16px;
  height: 16px;
  border-radius: 7px;
  background: rgba(217,249,157,0.78);
  box-shadow: 0 0 14px rgba(217,249,157,0.24);
}
.scene-api .api-node.left { left: 16px; }
.scene-api .api-node.right { right: 16px; background: rgba(140,200,255,0.82); }
.scene-api .api-line {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 26px;
  height: 2px;
  background: rgba(255,255,255,0.13);
}
.scene-api .api-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0;
}
.toolkit-backend:hover .scene-api .api-line::after { animation: apiPacket 1.05s ease-in-out infinite; opacity: 1; }

/* AI: pulsing neural graph */
.scene-neural .neural-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(217,249,157,0.25);
}
.scene-neural .n1 { left: 16px; top: 15px; }
.scene-neural .n2 { left: 39px; top: 31px; background: var(--accent); }
.scene-neural .n3 { right: 17px; top: 13px; background: var(--accent); }
.scene-neural .n4 { right: 23px; bottom: 10px; }
.scene-neural .neural-line {
  position: absolute;
  height: 2px;
  background: rgba(140,200,255,0.28);
  transform-origin: left center;
}
.scene-neural .neural-line.a { left: 25px; top: 23px; width: 28px; transform: rotate(34deg); }
.scene-neural .neural-line.b { left: 48px; top: 33px; width: 27px; transform: rotate(-35deg); }
.scene-neural .neural-line.c { left: 50px; top: 37px; width: 24px; transform: rotate(10deg); background: rgba(217,249,157,0.25); }
.toolkit-ai:hover .scene-neural .neural-node { animation: neuralPulse 1.1s ease-in-out infinite; }
.toolkit-ai:hover .scene-neural .n2 { animation-delay: 0.12s; }
.toolkit-ai:hover .scene-neural .n3 { animation-delay: 0.24s; }
.toolkit-ai:hover .scene-neural .n4 { animation-delay: 0.36s; }
.toolkit-ai:hover .scene-neural .neural-line { animation: linePulse 1.1s ease-in-out infinite; }

/* Cloud: containers deploy into cloud */
.scene-deploy .deploy-box {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 13px;
  border-radius: 5px;
  background: rgba(140,200,255,0.52);
  border: 1px solid rgba(255,255,255,0.08);
}
.scene-deploy .deploy-box.one { bottom: 10px; }
.scene-deploy .deploy-box.two { bottom: 24px; }
.scene-deploy .deploy-box.three { bottom: 38px; }
.scene-deploy .deploy-cloud {
  position: absolute;
  right: 14px;
  top: 17px;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(217,249,157,0.60);
  box-shadow: 0 0 16px rgba(217,249,157,0.20);
}
.scene-deploy .deploy-cloud::before,
.scene-deploy .deploy-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.scene-deploy .deploy-cloud::before { width: 17px; height: 17px; left: 6px; top: -8px; }
.scene-deploy .deploy-cloud::after { width: 13px; height: 13px; right: 6px; top: -5px; }
.toolkit-cloud:hover .scene-deploy .deploy-box { animation: deployBox 1.35s ease-in-out infinite; }
.toolkit-cloud:hover .scene-deploy .deploy-box.two { animation-delay: 0.12s; }
.toolkit-cloud:hover .scene-deploy .deploy-box.three { animation-delay: 0.24s; }
.toolkit-cloud:hover .scene-deploy .deploy-cloud { animation: cloudBreathe 1.35s ease-in-out infinite; }

/* Data: database + dashboard bars */
.scene-data .db-cylinder {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 28px;
  height: 27px;
  border-radius: 50% / 18%;
  background: linear-gradient(180deg, rgba(140,200,255,0.66), rgba(140,200,255,0.20));
  border: 1px solid rgba(140,200,255,0.30);
}
.scene-data .db-cylinder::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(217,249,157,0.35);
  background: rgba(217,249,157,0.18);
}
.scene-data .data-bar {
  position: absolute;
  bottom: 12px;
  width: 8px;
  border-radius: 999px 999px 3px 3px;
  background: var(--accent-2);
  transform-origin: bottom center;
  opacity: 0.74;
}
.scene-data .b1 { right: 32px; height: 14px; }
.scene-data .b2 { right: 21px; height: 24px; background: var(--accent); }
.scene-data .b3 { right: 10px; height: 18px; }
.toolkit-data:hover .scene-data .db-cylinder { animation: dataFill 1.2s ease-in-out infinite; }
.toolkit-data:hover .scene-data .data-bar { animation: barGrow 1s ease-in-out infinite; }
.toolkit-data:hover .scene-data .b2 { animation-delay: 0.12s; }
.toolkit-data:hover .scene-data .b3 { animation-delay: 0.24s; }

/* Skill-specific easter-egg chip motion */
.skill-mini-chip.tech-python:hover { animation: snakeWiggle 0.55s ease-in-out infinite; }
.skill-mini-chip.tech-react:hover { animation: reactChipOrbit 0.85s ease-in-out infinite; }
.skill-mini-chip.tech-aws:hover,
.skill-mini-chip.tech-openai:hover { animation: softPulse 0.9s ease-in-out infinite; }
.skill-mini-chip.tech-docker:hover { animation: containerStack 0.72s ease-in-out infinite; }
.skill-mini-chip.tech-git:hover { animation: branchNudge 0.7s ease-in-out infinite; }
.skill-mini-chip.tech-snowflake:hover { animation: snowDrift 0.8s ease-in-out infinite; }
.skill-mini-chip.tech-postgres:hover,
.skill-mini-chip.tech-sql:hover { animation: dbBounce 0.76s ease-in-out infinite; }

@keyframes codeTypeShort { 0%, 100% { transform: scaleX(0.45); } 50% { transform: scaleX(1); } }
@keyframes codeTypeLong { 0%, 100% { transform: scaleX(0.35); } 50% { transform: scaleX(1); } }
@keyframes cursorBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.18; } }
@keyframes orbitOne { to { transform: rotate(360deg) translateX(27px); } }
@keyframes orbitTwo { to { transform: rotate(480deg) translateX(27px); } }
@keyframes orbitThree { to { transform: rotate(600deg) translateX(27px); } }
@keyframes apiPacket { 0% { transform: translateX(0) scale(0.8); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateX(36px) scale(1); opacity: 0; } }
@keyframes neuralPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }
@keyframes linePulse { 0%, 100% { opacity: 0.28; } 50% { opacity: 0.86; } }
@keyframes deployBox { 0%, 100% { transform: translate(0,0); opacity: 0.72; } 50% { transform: translate(28px,-9px) scale(0.72); opacity: 1; } }
@keyframes cloudBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) translateY(-2px); } }
@keyframes dataFill { 0%, 100% { filter: brightness(1); transform: translateY(0); } 50% { filter: brightness(1.35); transform: translateY(-2px); } }
@keyframes barGrow { 0%, 100% { transform: scaleY(0.55); opacity: 0.58; } 50% { transform: scaleY(1.18); opacity: 1; } }
@keyframes snakeWiggle { 0%, 100% { transform: translateY(-9px) translateX(0) scale(1.08) !important; } 50% { transform: translateY(-9px) translateX(4px) scale(1.08) !important; } }
@keyframes reactChipOrbit { 0%, 100% { transform: translateY(-9px) rotate(0deg) scale(1.08) !important; } 50% { transform: translateY(-9px) rotate(4deg) scale(1.1) !important; } }
@keyframes softPulse { 0%, 100% { box-shadow: 0 16px 32px rgba(140,200,255,0.14); } 50% { box-shadow: 0 18px 40px rgba(217,249,157,0.24); } }
@keyframes containerStack { 0%, 100% { transform: translateY(-9px) scale(1.08) !important; } 50% { transform: translateY(-13px) scale(1.08) !important; } }
@keyframes branchNudge { 0%, 100% { transform: translateY(-9px) rotate(0deg) scale(1.08) !important; } 50% { transform: translateY(-9px) rotate(-3deg) scale(1.08) !important; } }
@keyframes snowDrift { 0%, 100% { transform: translateY(-9px) translateX(0) scale(1.08) !important; } 50% { transform: translateY(-12px) translateX(-3px) scale(1.08) !important; } }
@keyframes dbBounce { 0%, 100% { transform: translateY(-9px) scale(1.08) !important; } 50% { transform: translateY(-12px) scale(1.08) !important; } }

@media (max-width: 1100px) {
  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .skill-micro-scene {
    flex-basis: 72px;
    width: 72px;
    height: 48px;
  }

  .toolkit-flow {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toolkit-card:hover .skill-micro-scene,
  .toolkit-card:hover .skill-micro-scene *,
  .skill-mini-chip:hover {
    animation: none !important;
  }
}

/* Toolkit polish: no hover glow + always-on meaning animations */
.toolkit-card::before,
.toolkit-card:hover::before {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
  transform: none !important;
}

.toolkit-card:hover .skill-micro-scene {
  border-color: rgba(140,200,255,0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.toolkit-card:hover .toolkit-flow {
  color: var(--muted) !important;
  opacity: 0.82;
}

/* Keep the six toolkit micro-scenes moving even without hover */
.toolkit-languages .scene-code .code-line.short { animation: codeTypeShort 1.15s ease-in-out infinite; }
.toolkit-languages .scene-code .code-line.long { animation: codeTypeLong 1.15s ease-in-out infinite 0.13s; }
.toolkit-languages .scene-code .code-cursor { animation: cursorBlink 0.72s steps(2, start) infinite; }

.toolkit-frontend .scene-orbit .orbit-dot.one { animation: orbitOne 1.8s linear infinite; }
.toolkit-frontend .scene-orbit .orbit-dot.two { animation: orbitTwo 1.8s linear infinite; }
.toolkit-frontend .scene-orbit .orbit-dot.three { animation: orbitThree 1.8s linear infinite; }

.toolkit-backend .scene-api .api-line::after { animation: apiPacket 1.05s ease-in-out infinite; opacity: 1; }

.toolkit-ai .scene-neural .neural-node { animation: neuralPulse 1.1s ease-in-out infinite; }
.toolkit-ai .scene-neural .n2 { animation-delay: 0.12s; }
.toolkit-ai .scene-neural .n3 { animation-delay: 0.24s; }
.toolkit-ai .scene-neural .n4 { animation-delay: 0.36s; }
.toolkit-ai .scene-neural .neural-line { animation: linePulse 1.1s ease-in-out infinite; }

.toolkit-cloud .scene-deploy .deploy-box { animation: deployBox 1.35s ease-in-out infinite; }
.toolkit-cloud .scene-deploy .deploy-box.two { animation-delay: 0.12s; }
.toolkit-cloud .scene-deploy .deploy-box.three { animation-delay: 0.24s; }
.toolkit-cloud .scene-deploy .deploy-cloud { animation: cloudBreathe 1.35s ease-in-out infinite; }

.toolkit-data .scene-data .db-cylinder { animation: dataFill 1.2s ease-in-out infinite; }
.toolkit-data .scene-data .data-bar { animation: barGrow 1s ease-in-out infinite; }
.toolkit-data .scene-data .b2 { animation-delay: 0.12s; }
.toolkit-data .scene-data .b3 { animation-delay: 0.24s; }

/* Keep the left-side category icons subtly alive too */
.toolkit-card .icon-code { animation: codeBounceTilt 1.15s ease-in-out infinite; }
.toolkit-card .icon-screen { animation: screenTilt 1.55s ease-in-out infinite; }
.toolkit-card .icon-server { animation: serverTilt 1.35s ease-in-out infinite; }
.toolkit-card .icon-brain { animation: brainTilt 1.45s ease-in-out infinite; }
.toolkit-card .icon-cloud { animation: cloudTilt 1.85s ease-in-out infinite; }
.toolkit-card .icon-database { animation: databaseTilt 1.55s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .toolkit-card .skill-micro-scene *,
  .toolkit-card .skill-category-icon {
    animation: none !important;
  }
}


/* Technical Toolkit heading: meaning-based animated title only */
.toolkit-heading {
  overflow: visible;
}

.toolkit-title {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.18em;
  padding: 0.22em 2.9rem 0.42rem 0;
  overflow: visible;
}

.toolkit-word {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform;
}

.toolkit-word-technical {
  animation: toolkitTechnicalBob 3.1s ease-in-out infinite;
}

.toolkit-word-technical::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.08em;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.08), rgba(140,200,255,0.22), rgba(140,200,255,0.08));
  opacity: 0.7;
  transform: scaleX(0.96);
}

.toolkit-word-toolkit {
  animation: toolkitSoftWobble 3.5s ease-in-out infinite 0.2s;
}

.toolkit-heading-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 16px rgba(4, 10, 26, 0.35));
  will-change: transform;
}

.sticker-wrench {
  top: -0.24em;
  right: 2.05rem;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  animation: toolkitWrenchSwing 3.2s ease-in-out infinite;
  transform-origin: 72% 18%;
}

.sticker-screwdriver {
  right: 0.25rem;
  bottom: 0.28rem;
  font-size: clamp(0.98rem, 1.45vw, 1.2rem);
  animation: toolkitScrewdriverTwist 2.9s ease-in-out infinite 0.4s;
  transform-origin: 50% 78%;
}

.sticker-gear {
  top: 0.12em;
  right: 1.06rem;
  font-size: clamp(0.95rem, 1.35vw, 1.16rem);
  animation: toolkitGearSpin 5.8s linear infinite;
}

@keyframes toolkitTechnicalBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  28% { transform: translateY(-1.5px) rotate(-0.3deg); }
  50% { transform: translateY(1px) rotate(0.2deg); }
  72% { transform: translateY(-1px) rotate(-0.15deg); }
}

@keyframes toolkitSoftWobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-1px) rotate(-0.7deg); }
  40% { transform: translateY(1.2px) rotate(0.7deg); }
  60% { transform: translateY(-0.8px) rotate(-0.5deg); }
  80% { transform: translateY(0.6px) rotate(0.4deg); }
}

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

@keyframes toolkitScrewdriverTwist {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(8deg) translateY(-1px); }
  50% { transform: rotate(0deg) translateY(0.5px); }
  75% { transform: rotate(-8deg) translateY(-0.5px); }
}

@keyframes toolkitGearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .toolkit-title {
    gap: 0.12em;
    padding-right: 2.3rem;
    padding-bottom: 0.34rem;
  }

  .sticker-wrench {
    right: 1.55rem;
    top: -0.28em;
  }

  .sticker-gear {
    right: 0.78rem;
    top: 0.08em;
  }

  .sticker-screwdriver {
    right: 0;
    bottom: 0.18rem;
  }
}


/* AI / ML icon: simple SVG in the same green/blue toolkit style */
.icon-ai-spark {
  width: 1.42em;
  height: 1.42em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(217, 249, 157, 0.28));
  animation: aiSparkFloat 1.8s ease-in-out infinite;
}

.icon-ai-spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.icon-ai-spark .ai-orbit,
.icon-ai-spark .ai-core,
.icon-ai-spark .ai-dot,
.icon-ai-spark .ai-link {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-ai-spark .ai-orbit {
  stroke: rgba(217, 249, 157, 0.72);
}

.icon-ai-spark .ai-core {
  fill: rgba(217, 249, 157, 0.92);
  stroke: rgba(140, 200, 255, 0.88);
}

.icon-ai-spark .ai-dot {
  fill: rgba(140, 200, 255, 0.92);
  stroke: rgba(217, 249, 157, 0.95);
  animation: aiSparkDotPulse 1.35s ease-in-out infinite;
}

.icon-ai-spark .dot-two { animation-delay: 0.16s; }
.icon-ai-spark .dot-three { animation-delay: 0.32s; }

.icon-ai-spark .ai-link {
  stroke: rgba(140, 200, 255, 0.78);
  animation: aiSparkLinkPulse 1.35s ease-in-out infinite;
}

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

@keyframes aiSparkDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.12); opacity: 1; }
}

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


/* Recent Work: mission-control activity board */
.recent-work-section {
  position: relative;
}

.recent-work-heading {
  position: relative;
  overflow: visible;
}

.recent-work-title {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.18em;
  padding: 0.2em 4.1rem 0.36rem 0;
  overflow: visible;
}

.recent-word {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform;
}

.recent-word-recent {
  animation: recentTickFloat 3.1s ease-in-out infinite;
}

.recent-word-work {
  animation: recentWorkBuild 2.85s ease-in-out infinite 0.18s;
}

.recent-heading-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  color: var(--accent);
  will-change: transform;
}

.sticker-clock {
  top: -0.05em;
  right: 2.55rem;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  border: 2px solid rgba(217,249,157,0.74);
  font-size: 0.7em;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(217,249,157,0.22));
  animation: recentClockTick 1.8s steps(2, end) infinite;
}

.sticker-terminal {
  right: 0.3rem;
  bottom: 0.4rem;
  padding: 0.22em 0.38em;
  border-radius: 0.5em;
  border: 1px solid rgba(140,200,255,0.28);
  background: rgba(140,200,255,0.08);
  color: var(--accent-2);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: -0.03em;
  animation: recentTerminalBlink 1.2s steps(2, start) infinite;
}

.recent-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.recent-flow span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);
}

.recent-flow i {
  width: clamp(20px, 4vw, 46px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.15), rgba(217,249,157,0.74), rgba(140,200,255,0.15));
  position: relative;
  overflow: hidden;
}

.recent-flow i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  animation: recentFlowPacket 1.8s ease-in-out infinite;
}

.recent-mission-board {
  position: relative;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.recent-mission-board::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140,200,255,0.20), rgba(217,249,157,0.18), transparent);
  pointer-events: none;
  opacity: 0.75;
}

.recent-work-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.featured-work-card {
  grid-row: span 2;
}

.recent-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(140,200,255,0.12), transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(217,249,157,0.075), transparent 34%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

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

.work-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217,249,157,0.16);
  background: rgba(217,249,157,0.055);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.65);
  animation: statusPulse 1.2s ease-in-out infinite;
}

.work-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: center;
}

.featured-work-card .work-card-main {
  grid-template-columns: minmax(0, 1fr);
}

.featured-work-card .work-visual {
  min-height: 170px;
}

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

.work-visual {
  min-height: 126px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 0%, rgba(140,200,255,0.14), transparent 62%);
  position: relative;
  overflow: hidden;
}

.work-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(140,200,255,0.16);
  opacity: 0.9;
}

.data-node,
.api-client,
.api-server,
.api-db {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(217,249,157,0.25);
  background: rgba(217,249,157,0.08);
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.data-node {
  width: 48px;
  height: 48px;
}

.data-node::before {
  content: "";
  width: 22px;
  height: 18px;
  border-radius: 50% / 22%;
  border: 2px solid rgba(217,249,157,0.78);
  box-shadow: inset 0 -8px 0 rgba(140,200,255,0.12);
}

.data-node.source { left: 22px; top: 30px; }
.data-node.transform { left: calc(50% - 24px); top: 70px; }
.data-node.warehouse { right: 24px; top: 30px; }

.data-pipe {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(140,200,255,0.18), rgba(217,249,157,0.72), rgba(140,200,255,0.18));
  border-radius: 999px;
  transform-origin: left center;
}

.pipe-one {
  left: 68px;
  top: 63px;
  width: calc(50% - 82px);
  transform: rotate(13deg);
}

.pipe-two {
  left: calc(50% + 18px);
  top: 86px;
  width: calc(50% - 92px);
  transform: rotate(-16deg);
}

.data-packet {
  position: absolute;
  left: 28px;
  top: 58px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(217,249,157,0.7);
  animation: dataPacketMove 2.2s ease-in-out infinite;
}

.dashboard-bar {
  position: absolute;
  bottom: 28px;
  width: 9px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--accent-2), rgba(140,200,255,0.5));
  transform-origin: bottom;
  animation: dashboardBars 1.25s ease-in-out infinite;
}

.dashboard-bar.b1 { right: 92px; height: 30px; }
.dashboard-bar.b2 { right: 76px; height: 46px; animation-delay: 0.16s; }
.dashboard-bar.b3 { right: 60px; height: 24px; animation-delay: 0.32s; }

.api-client,
.api-server,
.api-db {
  width: 48px;
  height: 38px;
}

.api-client { left: 16px; top: 26px; }
.api-server { right: 18px; top: 28px; }
.api-db { left: calc(50% - 24px); bottom: 22px; }

.api-route {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(140,200,255,0.35);
}

.route-one {
  left: 62px;
  top: 45px;
  width: calc(100% - 128px);
}

.route-two {
  left: calc(50% - 2px);
  top: 45px;
  width: 2px;
  height: calc(100% - 105px);
  background: rgba(217,249,157,0.4);
}

.api-packet {
  position: absolute;
  left: 60px;
  top: 41px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(217,249,157,0.72);
  animation: apiPacketMove 1.55s ease-in-out infinite;
}

.phone-frame {
  position: absolute;
  left: 24px;
  top: 18px;
  width: 52px;
  height: 84px;
  border-radius: 15px;
  border: 2px solid rgba(217,249,157,0.72);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
  animation: phoneFloat 2s ease-in-out infinite;
}

.phone-dot,
.phone-line {
  position: absolute;
  left: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(140,200,255,0.55);
}

.phone-dot {
  top: 8px;
  left: 22px;
  right: auto;
  width: 8px;
  height: 8px;
}

.phone-line.l1 { top: 28px; height: 6px; }
.phone-line.l2 { top: 43px; height: 6px; right: 22px; }
.phone-line.l3 { top: 58px; height: 6px; right: 16px; }

.uptime-ring {
  position: absolute;
  right: 15px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(217,249,157,0.18);
  border-top-color: var(--accent-2);
  border-right-color: rgba(140,200,255,0.72);
  animation: uptimeSpin 2.3s linear infinite;
}

.cache-chip {
  position: absolute;
  right: 64px;
  bottom: 24px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(140,200,255,0.09);
  border: 1px solid rgba(140,200,255,0.22);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  animation: cachePulse 1.6s ease-in-out infinite;
}

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

@keyframes recentWorkBuild {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-1px) rotate(0.6deg); }
  60% { transform: translateY(1px) rotate(-0.45deg); }
}

@keyframes recentClockTick {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}

@keyframes recentTerminalBlink {
  0%, 48% { opacity: 1; transform: translateY(0); }
  49%, 100% { opacity: 0.58; transform: translateY(-1px); }
}

@keyframes recentFlowPacket {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(0.82); opacity: 0.72; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes dataPacketMove {
  0% { left: 30px; top: 58px; opacity: 0; }
  15% { opacity: 1; }
  45% { left: calc(50% - 6px); top: 86px; }
  82% { left: calc(100% - 70px); top: 58px; opacity: 1; }
  100% { left: calc(100% - 50px); top: 58px; opacity: 0; }
}

@keyframes dashboardBars {
  0%, 100% { transform: scaleY(0.62); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes apiPacketMove {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  70% { transform: translateX(62px); opacity: 1; }
  100% { transform: translateX(76px); opacity: 0; }
}

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

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

@keyframes cachePulse {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 980px) {
  .recent-mission-board {
    grid-template-columns: 1fr;
  }

  .featured-work-card {
    grid-row: auto;
  }

  .work-card-main,
  .featured-work-card .work-card-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-visual {
    min-height: 150px;
  }

  .recent-mission-board::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .recent-work-title {
    padding-right: 3.1rem;
  }

  .sticker-clock {
    right: 2rem;
  }

  .sticker-terminal {
    right: 0;
  }

  .work-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-flow {
    gap: 6px;
  }

  .recent-flow i {
    width: 20px;
  }
}


/* Recent Work layout fix: remove tall empty featured-card gap */
.recent-mission-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.featured-work-card {
  grid-column: 1 / -1;
  grid-row: auto;
}

.featured-work-card .work-card-main {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
}

.featured-work-card .work-visual {
  min-height: 190px;
}

.recent-work-card {
  min-height: auto;
}

.recent-work-card:not(.featured-work-card) .work-card-main {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.recent-work-card:not(.featured-work-card) .work-visual {
  min-height: 132px;
}

.recent-mission-board::before {
  top: 43%;
  opacity: 0.45;
}

@media (max-width: 980px) {
  .recent-mission-board {
    grid-template-columns: 1fr;
  }

  .featured-work-card {
    grid-column: auto;
  }

  .featured-work-card .work-card-main,
  .recent-work-card:not(.featured-work-card) .work-card-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-work-card .work-visual,
  .recent-work-card:not(.featured-work-card) .work-visual {
    min-height: 150px;
  }
}


/* Recent Work card refinement:
   title + description span full width, bottom splits bullets and animation */
.recent-work-card:not(.featured-work-card) .work-card-main {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.82fr);
  align-items: start;
}

.recent-work-card:not(.featured-work-card) .work-copy {
  display: contents;
}

.recent-work-card:not(.featured-work-card) h3,
.recent-work-card:not(.featured-work-card) p {
  grid-column: 1 / -1;
}

.recent-work-card:not(.featured-work-card) h3 {
  margin-bottom: 8px;
}

.recent-work-card:not(.featured-work-card) p {
  margin-bottom: 2px;
  max-width: 100%;
}

.recent-work-card:not(.featured-work-card) ul {
  grid-column: 1;
  align-self: stretch;
  margin-top: 8px;
}

.recent-work-card:not(.featured-work-card) .work-visual {
  grid-column: 2;
  align-self: stretch;
  min-height: 100%;
  height: auto;
  margin-top: 8px;
}

.recent-work-card:not(.featured-work-card) .work-visual::before {
  inset: 10px;
}

@media (max-width: 760px) {
  .recent-work-card:not(.featured-work-card) .work-card-main {
    grid-template-columns: 1fr;
  }

  .recent-work-card:not(.featured-work-card) .work-copy {
    display: block;
  }

  .recent-work-card:not(.featured-work-card) h3,
  .recent-work-card:not(.featured-work-card) p,
  .recent-work-card:not(.featured-work-card) ul,
  .recent-work-card:not(.featured-work-card) .work-visual {
    grid-column: auto;
  }

  .recent-work-card:not(.featured-work-card) .work-visual {
    min-height: 140px;
  }
}


/* Recent Work refinement: keep right-side animation compact instead of stretching vertically */
.recent-work-card:not(.featured-work-card) .work-visual {
  align-self: start;
  min-height: 132px;
  height: 132px;
  margin-top: 8px;
}

.recent-work-card:not(.featured-work-card) .work-card-main {
  align-items: start;
}

@media (max-width: 760px) {
  .recent-work-card:not(.featured-work-card) .work-visual {
    min-height: 140px;
    height: 140px;
  }
}


/* Recent Work refinement: vertically center compact animation beside bullet list */
.recent-work-card:not(.featured-work-card) .work-visual {
  align-self: center;
  margin-top: 8px;
  margin-bottom: 0;
}


/* Recent Work refinement: center compact animation inside the right column */
.recent-work-card:not(.featured-work-card) .work-visual {
  align-self: center;
  justify-self: center;
  width: min(100%, 214px);
  height: 132px;
  min-height: 132px;
  margin: 8px auto 0;
}

@media (max-width: 760px) {
  .recent-work-card:not(.featured-work-card) .work-visual {
    justify-self: stretch;
    width: 100%;
    height: 140px;
    min-height: 140px;
  }
}


/* Orail ML experience card */
.legacy-work-card {
  grid-column: 1 / -1;
}

.legacy-work-card .work-card-main {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
}

.status-ml {
  border-color: rgba(140,200,255,0.24);
  background: rgba(140,200,255,0.07);
  color: var(--accent);
}

.ml-work-visual {
  position: relative;
  
}

.vision-frame {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 2px solid rgba(217,249,157,0.72);
  background: rgba(217,249,157,0.045);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 14px rgba(217,249,157,0.75);
  animation: mlScan 1.55s ease-in-out infinite;
}

.face-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(140,200,255,0.9);
  box-shadow: 0 0 10px rgba(140,200,255,0.52);
}

.face-dot.d1 { left: 22px; top: 25px; }
.face-dot.d2 { right: 22px; top: 25px; }
.face-dot.d3 { left: 50%; top: 40px; transform: translateX(-50%); }

.face-smile {
  position: absolute;
  left: 23px;
  bottom: 16px;
  width: 26px;
  height: 12px;
  border-bottom: 3px solid rgba(217,249,157,0.7);
  border-radius: 0 0 999px 999px;
}

.embedding-node {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 15px rgba(217,249,157,0.45);
  animation: mlNodePulse 1.25s ease-in-out infinite;
}

.embedding-node.e1 { right: 86px; top: 34px; }
.embedding-node.e2 { right: 42px; top: 62px; animation-delay: 0.16s; }
.embedding-node.e3 { right: 96px; bottom: 30px; animation-delay: 0.32s; }

.embedding-link {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.28), rgba(217,249,157,0.72));
  transform-origin: left center;
  animation: mlLinkPulse 1.25s ease-in-out infinite;
}

.embedding-link.el1 {
  right: 56px;
  top: 52px;
  width: 45px;
  transform: rotate(32deg);
}

.embedding-link.el2 {
  right: 58px;
  top: 78px;
  width: 55px;
  transform: rotate(140deg);
}

.search-lens {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(140,200,255,0.78);
  box-shadow: 0 0 18px rgba(140,200,255,0.22);
  animation: mlLensFloat 1.9s ease-in-out infinite;
}

.search-lens::after {
  content: "";
  position: absolute;
  right: -11px;
  bottom: -6px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(217,249,157,0.72);
  transform: rotate(45deg);
}

@keyframes mlScan {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(48px); opacity: 1; }
}

@keyframes mlNodePulse {
  0%, 100% { transform: scale(0.88); opacity: 0.72; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes mlLinkPulse {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.95; }
}

@keyframes mlLensFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

@media (max-width: 980px) {
  .legacy-work-card {
    grid-column: auto;
  }

  .legacy-work-card .work-card-main {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Orail consistency fix: make the added ML card match the other Recent Work cards */
.recent-mission-board .recent-work-card:nth-of-type(4) {
  grid-column: auto;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .work-card-main {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.82fr);
  align-items: start;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .work-copy {
  display: contents;
}

.recent-mission-board .recent-work-card:nth-of-type(4) h3,
.recent-mission-board .recent-work-card:nth-of-type(4) p {
  grid-column: 1 / -1;
}

.recent-mission-board .recent-work-card:nth-of-type(4) ul {
  grid-column: 1;
  align-self: stretch;
  margin-top: 8px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .work-visual {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 214px);
  height: 132px;
  min-height: 132px;
  margin: 8px auto 0;
}

/* Match the compact visual language of the other cards */
.recent-mission-board .recent-work-card:nth-of-type(4) .ml-work-visual {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 0%, rgba(140,200,255,0.14), transparent 62%);
}

.recent-mission-board .recent-work-card:nth-of-type(4) .vision-frame {
  left: 18px;
  top: 27px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .scan-line {
  left: 8px;
  right: 8px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .face-dot {
  width: 6px;
  height: 6px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .face-dot.d1 { left: 18px; top: 22px; }
.recent-mission-board .recent-work-card:nth-of-type(4) .face-dot.d2 { right: 18px; top: 22px; }
.recent-mission-board .recent-work-card:nth-of-type(4) .face-dot.d3 { top: 35px; }

.recent-mission-board .recent-work-card:nth-of-type(4) .face-smile {
  left: 19px;
  bottom: 12px;
  width: 22px;
  height: 10px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .embedding-node.e1 { right: 90px; top: 34px; }
.recent-mission-board .recent-work-card:nth-of-type(4) .embedding-node.e2 { right: 54px; top: 58px; }
.recent-mission-board .recent-work-card:nth-of-type(4) .embedding-node.e3 { right: 96px; bottom: 28px; }

.recent-mission-board .recent-work-card:nth-of-type(4) .embedding-link.el1 {
  right: 60px;
  top: 45px;
  width: 35px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .embedding-link.el2 {
  right: 25px;
  top: 67px;
  width: 42px;
}

.recent-mission-board .recent-work-card:nth-of-type(4) .search-lens {
  right: 22px;
  bottom: 25px;
  width: 36px;
  height: 36px;
}

@media (max-width: 760px) {
  .recent-mission-board .recent-work-card:nth-of-type(4) {
    grid-column: auto;
  }

  .recent-mission-board .recent-work-card:nth-of-type(4) .work-card-main {
    grid-template-columns: 1fr;
  }

  .recent-mission-board .recent-work-card:nth-of-type(4) .work-copy {
    display: block;
  }

  .recent-mission-board .recent-work-card:nth-of-type(4) h3,
  .recent-mission-board .recent-work-card:nth-of-type(4) p,
  .recent-mission-board .recent-work-card:nth-of-type(4) ul,
  .recent-mission-board .recent-work-card:nth-of-type(4) .work-visual {
    grid-column: auto;
  }

  .recent-mission-board .recent-work-card:nth-of-type(4) .work-visual {
    justify-self: stretch;
    width: 100%;
    height: 140px;
    min-height: 140px;
  }
}


/* Orail final consistency fix:
   make ML card bullets look exactly like the other Recent Work bullet cards */
.recent-mission-board .recent-work-card:nth-of-type(4) ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin-top: 8px;
  list-style: none;
}

.recent-mission-board .recent-work-card:nth-of-type(4) li {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  color: var(--muted);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: none;
}

.recent-mission-board .recent-work-card:nth-of-type(4) li::marker {
  content: "";
}

.recent-mission-board .recent-work-card:nth-of-type(4) li::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255,255,255,0.34) 48%, rgba(217,249,157,0.22) 52%, transparent 64%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.65s ease, opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}

.recent-mission-board .recent-work-card:nth-of-type(4) li::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(140,200,255,0.0), rgba(217,249,157,0.45), rgba(140,200,255,0.0));
  opacity: 0;
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.25s ease;
}

.recent-mission-board .recent-work-card:nth-of-type(4) li:hover {
  color: var(--text);
  border-color: rgba(217,249,157,0.38);
  background: rgba(217,249,157,0.075);
  box-shadow:
    0 0 0 1px rgba(217,249,157,0.08),
    0 12px 32px rgba(217,249,157,0.10),
    inset 0 1px 0 rgba(255,255,255,0.16);
  transform: translateY(-3px) scale(1.006);
}

.recent-mission-board .recent-work-card:nth-of-type(4) li:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.recent-mission-board .recent-work-card:nth-of-type(4) li:hover::after {
  opacity: 1;
}

/* Keep Orail visual positioned like VibeSea/WorkUp */
.recent-mission-board .recent-work-card:nth-of-type(4) .work-visual {
  align-self: center;
  justify-self: center;
  width: min(100%, 214px);
  height: 132px;
  min-height: 132px;
  margin: 8px auto 0;
}

@media (max-width: 760px) {
  .recent-mission-board .recent-work-card:nth-of-type(4) ul {
    padding-left: 0;
    list-style: none;
  }
}


/* Orail hover consistency fix:
   give the non-clickable ML card the same whole-card hover feel as other Recent Work cards */
.recent-mission-board .recent-work-card:nth-of-type(4) {
  cursor: default;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.recent-mission-board .recent-work-card:nth-of-type(4)::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 14% 0%, rgba(140,200,255,0.16), transparent 34%),
    radial-gradient(circle at 92% 70%, rgba(217,249,157,0.10), transparent 38%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.recent-mission-board .recent-work-card:nth-of-type(4) > * {
  position: relative;
  z-index: 1;
}

.recent-mission-board .recent-work-card:nth-of-type(4):hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.36);
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

.recent-mission-board .recent-work-card:nth-of-type(4):hover::before {
  opacity: 1;
}

.recent-mission-board .recent-work-card:nth-of-type(4):hover h3 {
  color: var(--accent);
}

.recent-mission-board .recent-work-card:nth-of-type(4):hover .date {
  transform: translateY(-4px) scale(1.05);
  color: var(--accent-2);
}

.recent-mission-board .recent-work-card:nth-of-type(4) h3,
.recent-mission-board .recent-work-card:nth-of-type(4) .date {
  transition: transform 0.25s ease, color 0.25s ease;
}

.recent-mission-board .recent-work-card:nth-of-type(4):hover li {
  border-color: rgba(217,249,157,0.14);
  background: rgba(217,249,157,0.04);
}


/* IMD weather ML experience card */
.status-weather {
  border-color: rgba(140,200,255,0.26);
  background: rgba(140,200,255,0.075);
  color: var(--accent);
}

.imd-work-card {
  cursor: default;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.imd-work-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 14% 0%, rgba(140,200,255,0.16), transparent 34%),
    radial-gradient(circle at 92% 70%, rgba(217,249,157,0.10), transparent 38%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

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

.imd-work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.36);
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

.imd-work-card:hover::before {
  opacity: 1;
}

.imd-work-card:hover h3 {
  color: var(--accent);
}

.imd-work-card h3,
.imd-work-card .date {
  transition: transform 0.25s ease, color 0.25s ease;
}

.imd-work-card:hover .date {
  transform: translateY(-4px) scale(1.05);
  color: var(--accent-2);
}

.imd-work-card:hover li {
  border-color: rgba(217,249,157,0.14);
  background: rgba(217,249,157,0.04);
}

/* Match Recent Work two-column card structure */
.recent-mission-board .imd-work-card .work-card-main {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.82fr);
  align-items: start;
}

.recent-mission-board .imd-work-card .work-copy {
  display: contents;
}

.recent-mission-board .imd-work-card h3,
.recent-mission-board .imd-work-card p {
  grid-column: 1 / -1;
}

.recent-mission-board .imd-work-card ul {
  grid-column: 1;
  align-self: stretch;
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin-top: 8px;
  list-style: none;
}

.recent-mission-board .imd-work-card li {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  color: var(--muted);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: none;
}

.recent-mission-board .imd-work-card li::marker {
  content: "";
}

.recent-mission-board .imd-work-card li::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255,255,255,0.34) 48%, rgba(217,249,157,0.22) 52%, transparent 64%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.65s ease, opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}

.recent-mission-board .imd-work-card li::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(140,200,255,0.0), rgba(217,249,157,0.45), rgba(140,200,255,0.0));
  opacity: 0;
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.25s ease;
}

.recent-mission-board .imd-work-card li:hover {
  color: var(--text);
  border-color: rgba(217,249,157,0.38);
  background: rgba(217,249,157,0.075);
  box-shadow:
    0 0 0 1px rgba(217,249,157,0.08),
    0 12px 32px rgba(217,249,157,0.10),
    inset 0 1px 0 rgba(255,255,255,0.16);
  transform: translateY(-3px) scale(1.006);
}

.recent-mission-board .imd-work-card li:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.recent-mission-board .imd-work-card li:hover::after {
  opacity: 1;
}

.recent-mission-board .imd-work-card .work-visual {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 214px);
  height: 132px;
  min-height: 132px;
  margin: 8px auto 0;
}

/* Weather/forecast visual */
.weather-work-visual {
  position: relative;
}

.weather-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(140,200,255,0.16);
  border: 2px solid rgba(140,200,255,0.58);
  box-shadow: 0 0 18px rgba(140,200,255,0.16);
}

.weather-cloud::before,
.weather-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
  border: inherit;
  border-bottom: 0;
}

.weather-cloud.c1 {
  left: 24px;
  top: 36px;
  width: 62px;
  height: 28px;
  animation: cloudDriftSmall 2.4s ease-in-out infinite;
}

.weather-cloud.c1::before {
  width: 28px;
  height: 28px;
  left: 8px;
  top: -14px;
}

.weather-cloud.c1::after {
  width: 32px;
  height: 32px;
  right: 6px;
  top: -18px;
}

.weather-cloud.c2 {
  right: 30px;
  bottom: 34px;
  width: 50px;
  height: 23px;
  opacity: 0.8;
  animation: cloudDriftSmall 2.8s ease-in-out infinite reverse;
}

.weather-cloud.c2::before {
  width: 23px;
  height: 23px;
  left: 7px;
  top: -12px;
}

.weather-cloud.c2::after {
  width: 26px;
  height: 26px;
  right: 6px;
  top: -15px;
}

.weather-sun {
  position: absolute;
  right: 44px;
  top: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2), rgba(217,249,157,0.18) 62%, transparent 66%);
  box-shadow: 0 0 22px rgba(217,249,157,0.35);
  animation: sunPulse 1.8s ease-in-out infinite;
}

.weather-orbit {
  position: absolute;
  left: 52px;
  bottom: 24px;
  width: 82px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(217,249,157,0.24);
  transform: rotate(-16deg);
}

.weather-wave {
  position: absolute;
  left: 34px;
  right: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(217,249,157,0.74), transparent);
  animation: weatherWave 1.65s ease-in-out infinite;
}

.weather-wave.w1 { top: 72px; }
.weather-wave.w2 { top: 88px; animation-delay: 0.28s; }

.weather-signal {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(217,249,157,0.65);
  animation: signalBlink 1.2s ease-in-out infinite;
}

.weather-signal.s1 { left: 40px; top: 74px; }
.weather-signal.s2 { left: 96px; top: 90px; animation-delay: 0.18s; }
.weather-signal.s3 { right: 62px; top: 74px; animation-delay: 0.36s; }

@keyframes cloudDriftSmall {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes sunPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes weatherWave {
  0% { transform: translateX(-16px) scaleX(0.7); opacity: 0.3; }
  50% { transform: translateX(0) scaleX(1); opacity: 0.9; }
  100% { transform: translateX(16px) scaleX(0.7); opacity: 0.3; }
}

@keyframes signalBlink {
  0%, 100% { transform: scale(0.78); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 1; }
}

@media (max-width: 760px) {
  .recent-mission-board .imd-work-card .work-card-main {
    grid-template-columns: 1fr;
  }

  .recent-mission-board .imd-work-card .work-copy {
    display: block;
  }

  .recent-mission-board .imd-work-card h3,
  .recent-mission-board .imd-work-card p,
  .recent-mission-board .imd-work-card ul,
  .recent-mission-board .imd-work-card .work-visual {
    grid-column: auto;
  }

  .recent-mission-board .imd-work-card .work-visual {
    justify-self: stretch;
    width: 100%;
    height: 140px;
    min-height: 140px;
  }
}


/* Project card highlights for Reverse Image Search */
.project-highlights {
  display: grid;
  gap: 8px;
  padding-left: 0;
  margin: 14px 0 0;
  list-style: none;
  color: var(--muted);
}

.project-highlights li {
  position: relative;
  padding: 8px 10px 8px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.055);
  background: rgba(255,255,255,0.025);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.55);
}

.project-card:hover .project-highlights li {
  border-color: rgba(217,249,157,0.14);
  background: rgba(217,249,157,0.04);
}


/* Project section expansion: keep larger project groups readable */
.project-category .project-grid {
  align-items: stretch;
}

.project-card .tags {
  margin-top: 16px;
}


/* Animated Project Lab / Build Gallery */
.projects-lab-section {
  position: relative;
}

.projects-lab-heading {
  position: relative;
  overflow: visible;
}

.projects-lab-title {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  flex-wrap: wrap;
  padding: 0.2em 6.25rem 0.42rem 0;
  overflow: visible;
}

.project-title-word {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform;
}

.project-title-selected {
  animation: selectedCursorNudge 3.05s ease-in-out infinite;
}

.project-title-selected::after {
  content: "";
  position: absolute;
  left: 0.03em;
  right: 0.03em;
  bottom: 0.08em;
  height: 0.13em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.07), rgba(140,200,255,0.34), rgba(140,200,255,0.07));
  transform-origin: left center;
  animation: selectedUnderlineScan 3.05s ease-in-out infinite;
}

.project-title-projects {
  animation: projectsLaunchBob 3.4s ease-in-out infinite 0.18s;
}

.project-title-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.sticker-folder {
  right: 4.6rem;
  top: 0.05em;
  width: 1.35em;
  height: 1.05em;
  border: 2px solid rgba(217,249,157,0.68);
  border-radius: 0.22em;
  color: transparent;
  filter: drop-shadow(0 0 13px rgba(217,249,157,0.18));
  animation: folderFloat 2.6s ease-in-out infinite;
}

.sticker-folder::before {
  content: "";
  position: absolute;
  left: 0.12em;
  top: -0.27em;
  width: 0.56em;
  height: 0.28em;
  border: inherit;
  border-bottom: 0;
  border-radius: 0.2em 0.2em 0 0;
  background: rgba(217,249,157,0.08);
}

.sticker-rocket {
  right: 2.68rem;
  bottom: 0.34rem;
  width: 1.45em;
  height: 1.45em;
  border-radius: 999px;
  border: 1px solid rgba(140,200,255,0.28);
  background: rgba(140,200,255,0.075);
  color: var(--accent);
  font-size: 0.66em;
  font-weight: 900;
  animation: projectRocketLaunch 2.4s ease-in-out infinite;
}

.sticker-cursor {
  right: 0.1rem;
  top: -0.22em;
  padding: 0.28em 0.42em;
  border-radius: 999px;
  border: 1px solid rgba(217,249,157,0.2);
  background: rgba(217,249,157,0.06);
  color: var(--accent-2);
  font-size: clamp(0.58rem, 1.05vw, 0.82rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  animation: projectCursorBlink 1.15s steps(2, start) infinite;
}

.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-filter {
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.project-filter:hover,
.project-filter.active {
  color: var(--accent-2);
  border-color: rgba(217,249,157,0.28);
  background: rgba(217,249,157,0.075);
  box-shadow: 0 12px 28px rgba(217,249,157,0.08);
  transform: translateY(-2px);
}

.projects-lab-grid {
  display: grid;
  gap: 28px;
}

.project-category {
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.35s ease, margin 0.35s ease;
}

.project-category.project-category-hidden {
  opacity: 0;
  transform: translateY(10px);
  max-height: 0 !important;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

.project-category-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.project-category-scene {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.project-category-scene i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.cat-ai-scene i {
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(217,249,157,0.55);
  animation: categoryPulseDots 1.2s ease-in-out infinite;
}
.cat-ai-scene i:nth-child(1) { left: 11px; top: 7px; }
.cat-ai-scene i:nth-child(2) { left: 24px; top: 4px; animation-delay: 0.16s; }
.cat-ai-scene i:nth-child(3) { left: 37px; top: 10px; animation-delay: 0.32s; }

.cat-web-scene i,
.cat-data-scene i {
  height: 2px;
  width: 18px;
  background: linear-gradient(90deg, rgba(140,200,255,0.2), var(--accent-2));
  top: 10px;
  animation: categoryPacketSlide 1.45s ease-in-out infinite;
}
.cat-web-scene i:nth-child(1), .cat-data-scene i:nth-child(1) { left: 6px; }
.cat-web-scene i:nth-child(2), .cat-data-scene i:nth-child(2) { left: 20px; animation-delay: 0.12s; }
.cat-web-scene i:nth-child(3), .cat-data-scene i:nth-child(3) { left: 34px; animation-delay: 0.24s; }

.cat-app-scene i {
  width: 9px;
  height: 13px;
  border: 1px solid rgba(217,249,157,0.7);
  background: rgba(217,249,157,0.06);
  top: 4px;
  animation: categoryPhoneFloat 1.45s ease-in-out infinite;
}
.cat-app-scene i:nth-child(1) { left: 10px; }
.cat-app-scene i:nth-child(2) { left: 24px; animation-delay: 0.14s; }
.cat-app-scene i:nth-child(3) { left: 38px; animation-delay: 0.28s; }

.cat-bi-scene i {
  width: 7px;
  bottom: 4px;
  background: linear-gradient(180deg, var(--accent-2), rgba(140,200,255,0.55));
  animation: categoryBars 1.25s ease-in-out infinite;
}
.cat-bi-scene i:nth-child(1) { left: 12px; height: 8px; }
.cat-bi-scene i:nth-child(2) { left: 24px; height: 14px; animation-delay: 0.14s; }
.cat-bi-scene i:nth-child(3) { left: 36px; height: 10px; animation-delay: 0.28s; }

.project-card-lab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  transform-style: preserve-3d;
}

.project-card-lab::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at var(--project-x, 70%) var(--project-y, 10%), rgba(140,200,255,0.15), transparent 34%),
    radial-gradient(circle at 16% 92%, rgba(217,249,157,0.08), transparent 36%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: -1;
}

.project-card-lab:hover::before {
  opacity: 1;
}

.project-card-lab:hover {
  transform: translateY(-8px);
  border-color: rgba(140,200,255,0.34);
  box-shadow: 0 22px 58px rgba(0,0,0,0.22);
}

.project-card-lab .project-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(217,249,157,0.18);
  background: rgba(217,249,157,0.055);
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card-lab h3 {
  padding-right: 90px;
}

.project-card-lab .project-preview {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 72px;
  height: 54px;
  border-radius: 18px;
  border: 1px dashed rgba(140,200,255,0.18);
  background: rgba(255,255,255,0.025);
  opacity: 0.8;
  pointer-events: none;
  transform: translateZ(20px);
  overflow: hidden;
}

.project-preview .preview-node,
.project-preview .preview-line {
  position: absolute;
  display: block;
}

.project-preview .preview-node {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.55);
}

.project-preview .p1 { left: 14px; top: 18px; }
.project-preview .p2 { right: 15px; top: 18px; }
.project-preview .p3 { left: 31px; bottom: 12px; }

.project-preview .preview-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.35), rgba(217,249,157,0.7));
  transform-origin: left center;
}

.project-preview .l1 { left: 23px; top: 22px; width: 32px; }
.project-preview .l2 { left: 34px; top: 35px; width: 22px; transform: rotate(-28deg); }

.project-card-lab:hover .project-preview .preview-node {
  animation: previewNodePulse 1.05s ease-in-out infinite;
}

.project-card-lab:hover .project-preview .preview-line {
  animation: previewLinePulse 1.05s ease-in-out infinite;
}

/* Featured project cards */
.project-grid:has(.featured-project) {
  grid-template-columns: repeat(3, 1fr);
}

.featured-project {
  min-height: 330px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
    radial-gradient(circle at 80% 12%, rgba(140,200,255,0.12), transparent 38%);
}

.featured-project .project-preview {
  width: 96px;
  height: 72px;
}

.featured-project .project-cta {
  margin-top: auto;
}

.archive-project {
  min-height: 260px;
}

.visual-image-search .project-preview::after,
.visual-agent .project-preview::after,
.visual-data .project-preview::after,
.visual-trading .project-preview::after,
.visual-forecast .project-preview::after,
.visual-classifier .project-preview::after,
.visual-game .project-preview::after,
.visual-bi .project-preview::after,
.visual-scrape .project-preview::after,
.visual-archive .project-preview::after {
  position: absolute;
  inset: auto 10px 10px 10px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}

.visual-image-search .project-preview::after { content: "search"; }
.visual-agent .project-preview::after { content: "agent"; }
.visual-data .project-preview::after { content: "pipeline"; }
.visual-trading .project-preview::after { content: "ticker"; }
.visual-forecast .project-preview::after { content: "forecast"; }
.visual-classifier .project-preview::after { content: "classify"; }
.visual-game .project-preview::after { content: "run"; }
.visual-bi .project-preview::after { content: "BI"; }
.visual-scrape .project-preview::after { content: "crawl"; }
.visual-archive .project-preview::after { content: "old → new"; }

.visual-trading .project-preview .preview-line,
.visual-bi .project-preview .preview-line {
  transform: rotate(-16deg);
}

.visual-game .project-preview .p1,
.visual-archive .project-preview .p1 {
  border-radius: 4px;
}

.project-card-filtered-out {
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-width: 0;
}

.project-card-lab {
  transition:
    opacity 0.24s ease,
    transform 0.28s ease,
    max-height 0.35s ease,
    margin 0.25s ease,
    padding 0.25s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

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

@keyframes selectedUnderlineScan {
  0%, 100% { transform: scaleX(0.25); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 0.95; }
}

@keyframes projectsLaunchBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  36% { transform: translateY(-2px) rotate(0.45deg); }
  72% { transform: translateY(1px) rotate(-0.3deg); }
}

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

@keyframes projectRocketLaunch {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(4px, -5px) rotate(4deg); }
}

@keyframes projectCursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.55; }
}

@keyframes categoryPulseDots {
  0%, 100% { transform: scale(0.75); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes categoryPacketSlide {
  0%, 100% { transform: translateX(-4px); opacity: 0.45; }
  50% { transform: translateX(4px); opacity: 1; }
}

@keyframes categoryPhoneFloat {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes categoryBars {
  0%, 100% { transform: scaleY(0.62); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes previewNodePulse {
  0%, 100% { transform: scale(0.82); opacity: 0.65; }
  50% { transform: scale(1.15); opacity: 1; }
}

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

@media (max-width: 980px) {
  .project-grid:has(.featured-project),
  .skill-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-lab-title {
    padding-right: 4.8rem;
  }

  .sticker-cursor {
    display: none;
  }
}

@media (max-width: 680px) {
  .project-grid:has(.featured-project),
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-filter-bar {
    gap: 8px;
  }

  .project-filter {
    font-size: 0.76rem;
    padding: 8px 10px;
  }

  .projects-lab-title {
    padding-right: 3.1rem;
  }

  .sticker-folder {
    right: 2.9rem;
  }

  .sticker-rocket {
    right: 0.8rem;
  }

  .project-card-lab h3 {
    padding-right: 76px;
  }

  .project-card-lab .project-preview {
    width: 62px;
    height: 48px;
    right: 18px;
    top: 18px;
  }
}


/* Project Lab icon consistency fix:
   use one clean green/blue connected-node preview style for every project card */
.project-card-lab .project-preview {
  width: 74px;
  height: 54px;
  top: 22px;
  right: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(140, 200, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    radial-gradient(circle at 50% 30%, rgba(140,200,255,0.10), transparent 65%);
  opacity: 0.92;
  display: block;
  overflow: hidden;
}

/* Remove the tiny words like agent/search/forecast so all icons look consistent */
.visual-image-search .project-preview::after,
.visual-agent .project-preview::after,
.visual-data .project-preview::after,
.visual-trading .project-preview::after,
.visual-forecast .project-preview::after,
.visual-classifier .project-preview::after,
.visual-game .project-preview::after,
.visual-bi .project-preview::after,
.visual-scrape .project-preview::after,
.visual-archive .project-preview::after {
  content: none !important;
  display: none !important;
}

.featured-project .project-preview {
  width: 74px;
  height: 54px;
}

/* Reset every preview into the same node/edge composition */
.project-card-lab .project-preview .preview-node {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 1px solid rgba(217,249,157,0.45);
  box-shadow:
    0 0 0 4px rgba(217,249,157,0.035),
    0 0 14px rgba(217,249,157,0.50);
  opacity: 0.95;
}

.project-card-lab .project-preview .p1 {
  left: 15px;
  top: 17px;
}

.project-card-lab .project-preview .p2 {
  right: 15px;
  top: 17px;
}

.project-card-lab .project-preview .p3 {
  left: 32px;
  bottom: 11px;
}

.project-card-lab .project-preview .preview-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.25), rgba(217,249,157,0.80));
  opacity: 0.8;
  transform-origin: left center;
}

.project-card-lab .project-preview .l1 {
  left: 24px;
  top: 21px;
  width: 30px;
  transform: rotate(0deg);
}

.project-card-lab .project-preview .l2 {
  left: 37px;
  top: 33px;
  width: 24px;
  transform: rotate(-31deg);
}

/* Remove visual-class quirks that were rotating/changing individual icons */
.visual-trading .project-preview .preview-line,
.visual-bi .project-preview .preview-line,
.visual-game .project-preview .p1,
.visual-archive .project-preview .p1 {
  border-radius: 999px;
  transform: inherit;
}

.visual-trading .project-preview .l1,
.visual-bi .project-preview .l1,
.visual-game .project-preview .l1,
.visual-archive .project-preview .l1 {
  transform: rotate(0deg);
}

.visual-trading .project-preview .l2,
.visual-bi .project-preview .l2,
.visual-game .project-preview .l2,
.visual-archive .project-preview .l2 {
  transform: rotate(-31deg);
}

.project-card-lab:hover .project-preview {
  border-color: rgba(217,249,157,0.24);
  box-shadow:
    0 0 0 1px rgba(217,249,157,0.06),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.project-card-lab:hover .project-preview .preview-node {
  animation: previewNodePulseClean 1.08s ease-in-out infinite;
}

.project-card-lab:hover .project-preview .preview-line {
  animation: previewLinePulseClean 1.08s ease-in-out infinite;
}

.project-card-lab:hover .project-preview .p2 {
  animation-delay: 0.12s;
}

.project-card-lab:hover .project-preview .p3 {
  animation-delay: 0.24s;
}

@keyframes previewNodePulseClean {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes previewLinePulseClean {
  0%, 100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.95;
  }
}

@media (max-width: 680px) {
  .project-card-lab .project-preview,
  .featured-project .project-preview {
    width: 62px;
    height: 48px;
    right: 18px;
    top: 18px;
  }

  .project-card-lab .project-preview .p1 {
    left: 12px;
    top: 15px;
  }

  .project-card-lab .project-preview .p2 {
    right: 12px;
    top: 15px;
  }

  .project-card-lab .project-preview .p3 {
    left: 27px;
    bottom: 10px;
  }

  .project-card-lab .project-preview .l1 {
    left: 21px;
    top: 19px;
    width: 24px;
  }

  .project-card-lab .project-preview .l2 {
    left: 31px;
    top: 29px;
    width: 20px;
  }
}


/* Semantic project preview icons:
   keep the same green/blue line style, but change the icon based on project type */

/* Reset shared pseudo elements */
.project-card-lab .project-preview::before,
.project-card-lab .project-preview::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

/* ---------- AI / agent / search ---------- */
.visual-agent .project-preview .p1 { left: 12px; top: 18px; }
.visual-agent .project-preview .p2 { right: 14px; top: 18px; }
.visual-agent .project-preview .p3 { left: 32px; bottom: 10px; }
.visual-agent .project-preview .l1 { left: 22px; top: 22px; width: 28px; transform: rotate(0deg); }
.visual-agent .project-preview .l2 { left: 36px; top: 34px; width: 22px; transform: rotate(-30deg); }

.visual-ai .project-preview::before {
  left: 16px;
  top: 9px;
  width: 38px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(140,200,255,0.18);
  background: radial-gradient(circle at center, rgba(140,200,255,0.08), transparent 70%);
}
.visual-ai .project-preview .p1 { left: 17px; top: 19px; }
.visual-ai .project-preview .p2 { right: 17px; top: 19px; }
.visual-ai .project-preview .p3 { left: 32px; top: 28px; bottom: auto; }
.visual-ai .project-preview .l1 { left: 25px; top: 23px; width: 22px; transform: rotate(0deg); }
.visual-ai .project-preview .l2 { left: 35px; top: 30px; width: 16px; transform: rotate(-35deg); }

.visual-image-search .project-preview::before {
  left: 10px;
  top: 11px;
  width: 24px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(217,249,157,0.70);
  background: rgba(217,249,157,0.05);
  box-shadow: inset 0 -8px 0 rgba(140,200,255,0.08);
}
.visual-image-search .project-preview::after {
  right: 11px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(140,200,255,0.82);
  box-shadow: 0 0 14px rgba(140,200,255,0.18);
}
.visual-image-search .project-preview::after {
  box-shadow: 0 0 14px rgba(140,200,255,0.18);
}
.visual-image-search .project-preview .preview-node.p1 {
  left: 17px;
  top: 16px;
  width: 6px;
  height: 6px;
}
.visual-image-search .project-preview .preview-node.p2 {
  right: 8px;
  bottom: 7px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  transform: rotate(45deg);
  top: auto;
}
.visual-image-search .project-preview .preview-node.p3 {
  left: 21px;
  bottom: 18px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
}
.visual-image-search .project-preview .preview-line.l1 {
  left: 18px;
  top: 22px;
  width: 12px;
  transform: rotate(28deg);
}
.visual-image-search .project-preview .preview-line.l2 {
  display: none;
}

/* ---------- Classification / algorithm logic ---------- */
.visual-classifier .project-preview::before,
.visual-logic .project-preview::before {
  left: 31px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(217,249,157,0.48);
  background: rgba(217,249,157,0.08);
}
.visual-classifier .project-preview .preview-node,
.visual-logic .project-preview .preview-node {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}
.visual-classifier .project-preview .p1,
.visual-logic .project-preview .p1 {
  left: 14px;
  bottom: 12px;
  top: auto;
}
.visual-classifier .project-preview .p2,
.visual-logic .project-preview .p2 {
  right: 14px;
  bottom: 12px;
  top: auto;
}
.visual-classifier .project-preview .p3,
.visual-logic .project-preview .p3 {
  left: 33px;
  bottom: 12px;
}
.visual-classifier .project-preview .l1,
.visual-logic .project-preview .l1 {
  left: 22px;
  top: 21px;
  width: 18px;
  transform: rotate(34deg);
}
.visual-classifier .project-preview .l2,
.visual-logic .project-preview .l2 {
  left: 38px;
  top: 22px;
  width: 18px;
  transform: rotate(-34deg);
}

/* ---------- Backend / website / app ---------- */
.visual-api .project-preview::before {
  left: 12px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(217,249,157,0.48);
  background: rgba(217,249,157,0.08);
  box-shadow:
    38px 0 0 0 rgba(255,255,255,0),
    19px 18px 0 0 rgba(255,255,255,0);
}
.visual-api .project-preview .preview-node {
  width: 10px;
  height: 10px;
  border-radius: 4px;
}
.visual-api .project-preview .p1 { left: 14px; top: 16px; }
.visual-api .project-preview .p2 { right: 14px; top: 16px; }
.visual-api .project-preview .p3 { left: 32px; bottom: 12px; }
.visual-api .project-preview .l1 { left: 23px; top: 20px; width: 28px; transform: rotate(0deg); }
.visual-api .project-preview .l2 { left: 34px; top: 30px; width: 18px; transform: rotate(-34deg); }

/* Website icon */
.project-card-lab[data-category="web-backend"].visual-trading .project-preview::before,
.visual-scrape .project-preview::before {
  left: 10px;
  top: 9px;
  width: 52px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(140,200,255,0.60);
  background: rgba(140,200,255,0.05);
}
.project-card-lab[data-category="web-backend"].visual-trading .project-preview::after,
.visual-scrape .project-preview::after {
  left: 10px;
  top: 9px;
  width: 52px;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: rgba(217,249,157,0.09);
  border-bottom: 1px solid rgba(217,249,157,0.18);
}
.project-card-lab[data-category="web-backend"].visual-trading .project-preview .p1,
.visual-scrape .project-preview .p1 {
  left: 18px;
  top: 20px;
}
.project-card-lab[data-category="web-backend"].visual-trading .project-preview .p2,
.visual-scrape .project-preview .p2 {
  left: 31px;
  top: 25px;
  right: auto;
}
.project-card-lab[data-category="web-backend"].visual-trading .project-preview .p3,
.visual-scrape .project-preview .p3 {
  left: 45px;
  top: 17px;
  bottom: auto;
}
.project-card-lab[data-category="web-backend"].visual-trading .project-preview .l1 {
  left: 21px; top: 24px; width: 14px; transform: rotate(22deg);
}
.project-card-lab[data-category="web-backend"].visual-trading .project-preview .l2 {
  left: 34px; top: 23px; width: 14px; transform: rotate(-28deg);
}
.visual-scrape .project-preview .l1 {
  left: 18px; top: 23px; width: 24px; transform: rotate(0deg);
}
.visual-scrape .project-preview .l2 {
  left: 38px; top: 23px; width: 12px; transform: rotate(90deg);
}

/* Mobile/app icon */
.project-card-lab[data-category="app-dev"].visual-trading .project-preview::before,
.visual-game .project-preview::before {
  left: 22px;
  top: 7px;
  width: 26px;
  height: 40px;
  border-radius: 9px;
  border: 2px solid rgba(217,249,157,0.68);
  background: rgba(217,249,157,0.05);
}
.project-card-lab[data-category="app-dev"].visual-trading .project-preview::after,
.visual-game .project-preview::after {
  left: 32px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(140,200,255,0.78);
}
.project-card-lab[data-category="app-dev"].visual-trading .project-preview .p1 {
  left: 28px; top: 22px;
}
.project-card-lab[data-category="app-dev"].visual-trading .project-preview .p2 {
  left: 38px; top: 18px; right: auto;
}
.project-card-lab[data-category="app-dev"].visual-trading .project-preview .p3 {
  left: 42px; top: 28px; bottom: auto;
}
.project-card-lab[data-category="app-dev"].visual-trading .project-preview .l1 {
  left: 31px; top: 25px; width: 10px; transform: rotate(-28deg);
}
.project-card-lab[data-category="app-dev"].visual-trading .project-preview .l2 {
  left: 40px; top: 24px; width: 7px; transform: rotate(42deg);
}

/* Game icon */
.visual-game .project-preview .preview-node {
  width: 7px;
  height: 7px;
}
.visual-game .project-preview .p1 { left: 28px; top: 23px; }
.visual-game .project-preview .p2 { left: 40px; top: 23px; right: auto; }
.visual-game .project-preview .p3 { left: 34px; top: 29px; bottom: auto; }
.visual-game .project-preview .l1 { left: 17px; top: 27px; width: 10px; transform: rotate(0deg); }
.visual-game .project-preview .l2 { left: 21px; top: 23px; width: 10px; transform: rotate(90deg); }

/* ---------- Data / BI / forecast ---------- */
.visual-data .project-preview::before {
  left: 16px;
  top: 8px;
  width: 40px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(217,249,157,0.68);
  background: rgba(217,249,157,0.05);
  box-shadow:
    0 10px 0 -1px rgba(255,255,255,0),
    0 20px 0 -1px rgba(255,255,255,0);
}
.visual-data .project-preview::after {
  left: 16px;
  top: 12px;
  width: 40px;
  height: 26px;
  border-left: 2px solid rgba(217,249,157,0.68);
  border-right: 2px solid rgba(217,249,157,0.68);
  border-bottom: 2px solid rgba(217,249,157,0.68);
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(180deg, transparent 0 30%, rgba(140,200,255,0.12) 30% 33%, transparent 33% 63%, rgba(140,200,255,0.12) 63% 66%, transparent 66%);
}
.visual-data .project-preview .preview-node {
  width: 6px;
  height: 6px;
}
.visual-data .project-preview .p1 { left: 58px; top: 17px; }
.visual-data .project-preview .p2 { left: 58px; top: 29px; right: auto; }
.visual-data .project-preview .p3 { left: 58px; top: 41px; bottom: auto; }
.visual-data .project-preview .l1 { left: 50px; top: 21px; width: 10px; transform: rotate(0deg); }
.visual-data .project-preview .l2 { left: 50px; top: 33px; width: 10px; transform: rotate(0deg); }

.visual-stream .project-preview .preview-node {
  opacity: 0;
}
.visual-stream .project-preview .l1,
.visual-stream .project-preview .l2 {
  left: 13px;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140,200,255,0.85), rgba(217,249,157,0.8), transparent);
  transform: none;
  border-radius: 999px;
}
.visual-stream .project-preview .l1 { top: 20px; }
.visual-stream .project-preview .l2 { top: 31px; }
.visual-stream .project-preview::before {
  left: 8px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.55);
}
.visual-stream .project-preview::after {
  right: 8px;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(140,200,255,0.45);
}

.visual-bi .project-preview::before {
  left: 13px;
  bottom: 11px;
  width: 2px;
  height: 28px;
  background: rgba(140,200,255,0.45);
  border-radius: 999px;
}
.visual-bi .project-preview::after {
  left: 13px;
  bottom: 11px;
  width: 40px;
  height: 2px;
  background: rgba(140,200,255,0.45);
  border-radius: 999px;
}
.visual-bi .project-preview .preview-node {
  width: 8px;
  border-radius: 3px 3px 0 0;
  bottom: 13px;
  top: auto;
  background: linear-gradient(180deg, var(--accent-2), rgba(140,200,255,0.55));
  border: 0;
  box-shadow: 0 0 12px rgba(217,249,157,0.28);
}
.visual-bi .project-preview .p1 { left: 22px; height: 12px; }
.visual-bi .project-preview .p2 { left: 35px; height: 20px; right: auto; }
.visual-bi .project-preview .p3 { left: 48px; height: 15px; }
.visual-bi .project-preview .preview-line { display: none; }

.visual-forecast .project-preview::before {
  left: 11px;
  top: 14px;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: rgba(140,200,255,0.14);
  border: 2px solid rgba(140,200,255,0.6);
  box-shadow: 12px -7px 0 -2px rgba(140,200,255,0.14);
}
.visual-forecast .project-preview::after {
  left: 32px;
  top: 25px;
  width: 26px;
  height: 16px;
  border-left: 2px solid rgba(217,249,157,0.52);
  border-bottom: 2px solid rgba(217,249,157,0.52);
  transform: skewX(-30deg);
}
.visual-forecast .project-preview .p1 { left: 36px; top: 28px; }
.visual-forecast .project-preview .p2 { left: 45px; top: 22px; right: auto; }
.visual-forecast .project-preview .p3 { left: 54px; top: 17px; bottom: auto; }
.visual-forecast .project-preview .l1 { left: 39px; top: 28px; width: 12px; transform: rotate(-28deg); }
.visual-forecast .project-preview .l2 { left: 48px; top: 22px; width: 12px; transform: rotate(-28deg); }

/* ---------- DVD / business archive ---------- */
.visual-archive .project-preview::before {
  left: 13px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(217,249,157,0.72);
  box-shadow: inset 0 0 0 5px rgba(140,200,255,0.08);
}
.visual-archive .project-preview::after {
  right: 10px;
  top: 15px;
  width: 22px;
  height: 16px;
  border-radius: 6px;
  border: 2px solid rgba(140,200,255,0.72);
  background: rgba(140,200,255,0.05);
}
.visual-archive .project-preview .p1 {
  left: 47px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.visual-archive .project-preview .p2 {
  left: 54px;
  top: 20px;
  right: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.visual-archive .project-preview .p3 {
  display: none;
}
.visual-archive .project-preview .l1 {
  left: 35px;
  top: 23px;
  width: 10px;
  transform: rotate(0deg);
}
.visual-archive .project-preview .l2 {
  display: none;
}

@media (max-width: 680px) {
  .project-card-lab .project-preview::before,
  .project-card-lab .project-preview::after {
    transform: scale(0.95);
    transform-origin: center;
  }
}


/* Video sentiment split: website project gets browser-style semantic preview */
.visual-website .project-preview::before {
  left: 10px;
  top: 9px;
  width: 52px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(140,200,255,0.60);
  background: rgba(140,200,255,0.05);
}

.visual-website .project-preview::after {
  left: 10px;
  top: 9px;
  width: 52px;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: rgba(217,249,157,0.09);
  border-bottom: 1px solid rgba(217,249,157,0.18);
}

.visual-website .project-preview .p1 {
  left: 18px;
  top: 20px;
}

.visual-website .project-preview .p2 {
  left: 31px;
  top: 25px;
  right: auto;
}

.visual-website .project-preview .p3 {
  left: 45px;
  top: 17px;
  bottom: auto;
}

.visual-website .project-preview .l1 {
  left: 21px;
  top: 24px;
  width: 14px;
  transform: rotate(22deg);
}

.visual-website .project-preview .l2 {
  left: 34px;
  top: 23px;
  width: 14px;
  transform: rotate(-28deg);
}


/* Final project icon rebuild:
   inline SVG per project type, no old pseudo/icon layers fighting each other */
.project-card-lab .project-preview-svg {
  width: 76px;
  height: 56px;
  top: 22px;
  right: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(140, 200, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    radial-gradient(circle at 50% 30%, rgba(140,200,255,0.10), transparent 65%);
  overflow: hidden;
  opacity: 0.94;
}

.project-card-lab .project-preview-svg::before,
.project-card-lab .project-preview-svg::after {
  content: none !important;
  display: none !important;
}

.project-preview-svg .semantic-svg {
  width: 70px;
  height: 52px;
  overflow: visible;
}

.semantic-svg .svg-line,
.semantic-svg .svg-accent,
.semantic-svg .svg-box,
.semantic-svg .svg-soft,
.semantic-svg .svg-node,
.semantic-svg .svg-node-square,
.semantic-svg .svg-bar {
  vector-effect: non-scaling-stroke;
}

.semantic-svg .svg-line {
  fill: none;
  stroke: rgba(140, 200, 255, 0.76);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.semantic-svg .svg-accent {
  fill: none;
  stroke: rgba(217, 249, 157, 0.84);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.semantic-svg .svg-box {
  fill: rgba(217,249,157,0.055);
  stroke: rgba(217,249,157,0.74);
  stroke-width: 2.2;
}

.semantic-svg .svg-box.no-fill {
  fill: none;
}

.semantic-svg .svg-soft {
  fill: rgba(140,200,255,0.06);
  stroke: rgba(140,200,255,0.22);
  stroke-width: 1.8;
}

.semantic-svg .svg-node,
.semantic-svg .svg-node-square,
.semantic-svg .svg-bar {
  fill: rgba(217,249,157,0.88);
  stroke: rgba(140,200,255,0.82);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 8px rgba(217,249,157,0.38));
}

.semantic-svg .svg-node.tiny {
  stroke-width: 1.4;
}

.project-card-lab:hover .project-preview-svg {
  border-color: rgba(217,249,157,0.30);
  box-shadow:
    0 0 0 1px rgba(217,249,157,0.06),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.project-card-lab:hover .project-preview-svg .svg-node,
.project-card-lab:hover .project-preview-svg .svg-node-square,
.project-card-lab:hover .project-preview-svg .svg-bar {
  animation: semanticIconPulse 1.08s ease-in-out infinite;
}

.project-card-lab:hover .project-preview-svg .svg-line,
.project-card-lab:hover .project-preview-svg .svg-accent {
  animation: semanticLinePulse 1.08s ease-in-out infinite;
}

/* Gentle type-specific movement; all still share the same visual system */
.project-card-lab:hover .icon-stream .semantic-svg,
.project-card-lab:hover .icon-forecast .semantic-svg {
  animation: semanticFloat 1.5s ease-in-out infinite;
}

.project-card-lab:hover .icon-trading .svg-accent,
.project-card-lab:hover .icon-bi .svg-bar {
  animation: semanticIconPulse 0.95s ease-in-out infinite;
}

.project-card-lab:hover .icon-image-search .semantic-svg {
  animation: semanticSearchNudge 1.35s ease-in-out infinite;
}

@keyframes semanticIconPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

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

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

@keyframes semanticSearchNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@media (max-width: 680px) {
  .project-card-lab .project-preview-svg {
    width: 64px;
    height: 48px;
    right: 18px;
    top: 18px;
  }

  .project-preview-svg .semantic-svg {
    width: 60px;
    height: 44px;
  }
}


/* Project icon motion always-on:
   keep the SVG icons animated by default, not only on hover */
.project-card-lab .project-preview-svg .svg-node,
.project-card-lab .project-preview-svg .svg-node-square,
.project-card-lab .project-preview-svg .svg-bar {
  animation: semanticIconPulse 1.18s ease-in-out infinite;
}

.project-card-lab .project-preview-svg .svg-line,
.project-card-lab .project-preview-svg .svg-accent {
  animation: semanticLinePulse 1.18s ease-in-out infinite;
}

/* Type-specific motion should also run by default */
.project-card-lab .icon-stream .semantic-svg,
.project-card-lab .icon-forecast .semantic-svg {
  animation: semanticFloat 1.5s ease-in-out infinite;
}

.project-card-lab .icon-image-search .semantic-svg {
  animation: semanticSearchNudge 1.35s ease-in-out infinite;
}

.project-card-lab .icon-trading .svg-accent,
.project-card-lab .icon-bi .svg-bar {
  animation: semanticIconPulse 0.95s ease-in-out infinite;
}

/* Small stagger so multi-part icons feel more alive */
.project-card-lab .icon-agent .svg-node:nth-of-type(2),
.project-card-lab .icon-ai .svg-node:nth-of-type(2),
.project-card-lab .icon-tree .svg-node-square:nth-of-type(2),
.project-card-lab .icon-api .svg-box:nth-of-type(2),
.project-card-lab .icon-bi .svg-bar:nth-of-type(2),
.project-card-lab .icon-database .svg-line:nth-of-type(2) {
  animation-delay: 0.12s;
}

.project-card-lab .icon-agent .svg-node:nth-of-type(3),
.project-card-lab .icon-ai .svg-node:nth-of-type(3),
.project-card-lab .icon-tree .svg-node-square:nth-of-type(3),
.project-card-lab .icon-api .svg-box:nth-of-type(3),
.project-card-lab .icon-bi .svg-bar:nth-of-type(3),
.project-card-lab .icon-database .svg-line:nth-of-type(3) {
  animation-delay: 0.24s;
}

/* Keep hover feeling slightly more responsive without being required for motion */
.project-card-lab:hover .project-preview-svg {
  border-color: rgba(217,249,157,0.34);
}


/* Credential Vault: animated certifications and papers section */
.credential-vault-section {
  position: relative;
}

.credential-vault-heading {
  position: relative;
  overflow: visible;
}

.credential-title {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.18em;
  padding: 0.18em 5.2rem 0.44rem 0;
  overflow: visible;
}

.credential-word {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform;
}

.proof-word {
  animation: proofStampBob 2.9s ease-in-out infinite;
}

.proof-word::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: 0.08em;
  height: 0.13em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217,249,157,0.08), rgba(217,249,157,0.34), rgba(217,249,157,0.08));
  transform-origin: left center;
  animation: proofUnderline 2.9s ease-in-out infinite;
}

.learning-word {
  animation: learningPageLift 3.2s ease-in-out infinite 0.12s;
}

.practice-word {
  animation: practiceCursorTap 2.7s ease-in-out infinite 0.24s;
}

.depth-word {
  animation: depthLayerFloat 3.5s ease-in-out infinite 0.36s;
}

.depth-word::after {
  content: "";
  position: absolute;
  left: 0.1em;
  right: 0.1em;
  bottom: -0.04em;
  height: 0.42em;
  border-bottom: 2px solid rgba(140,200,255,0.24);
  border-left: 2px solid rgba(140,200,255,0.18);
  border-radius: 0 0 0 10px;
  opacity: 0.9;
}

.credential-sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticker-stamp {
  top: -0.12em;
  right: 3.8rem;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  border: 2px solid rgba(217,249,157,0.70);
  color: var(--accent-2);
  font-size: 0.75em;
  font-weight: 900;
  filter: drop-shadow(0 0 14px rgba(217,249,157,0.22));
  animation: credentialStamp 2.2s ease-in-out infinite;
}

.sticker-book {
  right: 2.05rem;
  bottom: 0.36rem;
  width: 1.35em;
  height: 1.05em;
  border: 2px solid rgba(140,200,255,0.60);
  border-radius: 0.16em 0.38em 0.38em 0.16em;
  background: rgba(140,200,255,0.055);
  transform-origin: left center;
  animation: bookFlip 2.6s ease-in-out infinite 0.2s;
}

.sticker-book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: rgba(140,200,255,0.36);
}

.sticker-terminal-cert {
  right: 0.1rem;
  top: -0.08em;
  padding: 0.28em 0.42em;
  border-radius: 999px;
  border: 1px solid rgba(217,249,157,0.22);
  background: rgba(217,249,157,0.065);
  color: var(--accent-2);
  font-size: clamp(0.58rem, 1.05vw, 0.82rem);
  font-weight: 900;
  animation: credentialCursorBlink 1.15s steps(2, start) infinite;
}

.credential-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.credential-path span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);
}

.credential-path i {
  position: relative;
  width: clamp(24px, 4vw, 52px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.12), rgba(217,249,157,0.72), rgba(140,200,255,0.12));
  overflow: hidden;
}

.credential-path i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  animation: credentialPathPacket 1.8s ease-in-out infinite;
}

.credential-vault-grid {
  align-items: stretch;
}

.credential-card {
  min-height: 245px;
  border-radius: 28px;
  isolation: isolate;
}

.credential-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(140,200,255,0.10);
  pointer-events: none;
  opacity: 0.9;
}

.credential-card:hover {
  box-shadow: 0 22px 58px rgba(0,0,0,0.22);
}

.credential-card:hover .cert-type {
  color: var(--accent-2);
  border-color: rgba(217,249,157,0.28);
  background: rgba(217,249,157,0.095);
}

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

.credential-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(140,200,255,0.22), rgba(217,249,157,0.10)),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.10), transparent 62%);
  overflow: hidden;
}

.credential-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.credential-icon svg * {
  vector-effect: non-scaling-stroke;
}

.cert-ring-track {
  fill: none;
  stroke: rgba(140,200,255,0.16);
  stroke-width: 4;
}

.cert-ring-progress {
  fill: none;
  stroke: rgba(217,249,157,0.82);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 28;
  transform-origin: center;
  transform: rotate(-90deg);
  animation: certRingFill 2.4s ease-in-out infinite;
}

.cert-cloud,
.cert-terminal,
.cert-paper {
  fill: rgba(140,200,255,0.07);
  stroke: rgba(140,200,255,0.72);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.cert-check,
.cert-code-line,
.cert-cursor-line,
.cert-fold,
.cert-paper-line,
.cert-plus {
  fill: none;
  stroke: rgba(217,249,157,0.88);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cert-check {
  stroke-dasharray: 22;
  stroke-dashoffset: 0;
  animation: certCheckPulse 1.45s ease-in-out infinite;
}

.cert-check.small {
  stroke-width: 2.2;
}

.cert-terminal {
  fill: rgba(217,249,157,0.045);
}

.cert-code-line {
  animation: codeLinePulse 1.35s ease-in-out infinite;
}

.cert-cursor-line {
  animation: certCursorLineBlink 0.85s steps(2, start) infinite;
}

.cert-paper.back {
  opacity: 0.42;
  transform: translate(4px, -3px);
}

.cert-paper.front {
  fill: rgba(217,249,157,0.045);
  stroke: rgba(217,249,157,0.72);
  animation: paperLift 2.1s ease-in-out infinite;
}

.cert-plus {
  stroke: rgba(140,200,255,0.82);
  animation: plusRotate 2.4s ease-in-out infinite;
  transform-origin: 44px 39px;
}

.cert-paper-line {
  stroke: rgba(140,200,255,0.68);
}

.credential-card:hover .credential-icon {
  border-color: rgba(217,249,157,0.30);
  box-shadow:
    0 0 0 1px rgba(217,249,157,0.06),
    0 16px 36px rgba(0,0,0,0.22);
}

@keyframes proofStampBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  48% { transform: translateY(-2px) rotate(-0.35deg); }
}

@keyframes proofUnderline {
  0%, 100% { transform: scaleX(0.35); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 0.95; }
}

@keyframes learningPageLift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1.5px) rotate(0.4deg); }
}

@keyframes practiceCursorTap {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-1px); }
  58% { transform: translateY(1px); }
}

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

@keyframes credentialStamp {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.05); }
}

@keyframes bookFlip {
  0%, 100% { transform: rotateY(0deg) rotate(-2deg); }
  50% { transform: rotateY(-24deg) rotate(2deg); }
}

@keyframes credentialCursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.55; }
}

@keyframes credentialPathPacket {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes certRingFill {
  0%, 100% { stroke-dashoffset: 48; }
  50% { stroke-dashoffset: 16; }
}

@keyframes certCheckPulse {
  0%, 100% { opacity: 0.62; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

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

@keyframes certCursorLineBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.25; }
}

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

@keyframes plusRotate {
  0%, 100% { transform: rotate(0deg); opacity: 0.65; }
  50% { transform: rotate(90deg); opacity: 1; }
}

@media (max-width: 720px) {
  .credential-title {
    padding-right: 3.2rem;
  }

  .sticker-stamp {
    right: 2.2rem;
  }

  .sticker-book {
    display: none;
  }

  .sticker-terminal-cert {
    right: 0;
  }

  .credential-path {
    gap: 6px;
  }

  .credential-path i {
    width: 22px;
  }

  .credential-card {
    grid-template-columns: auto 1fr;
  }

  .credential-card .cert-arrow {
    grid-column: 2;
    justify-self: start;
  }
}

/* Contact Launch Panel */
.contact-launch-panel { position: relative; isolation: isolate; overflow: hidden; }
.contact-launch-panel::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 18% 12%, rgba(140,200,255,0.13), transparent 34%),
              radial-gradient(circle at 86% 68%, rgba(217,249,157,0.10), transparent 38%);
}
.contact-launch-panel > * { position: relative; z-index: 1; }

.contact-title {
  position: relative; display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 0.16em;
  padding: 0.18em 4.7rem 0.38rem 0; overflow: visible;
}
.contact-word { position: relative; display: inline-block; transform-origin: center bottom; will-change: transform; }
.build-word { animation: contactBuildTap 2.7s ease-in-out infinite; }
.something-word { animation: contactBlocksLift 3.1s ease-in-out infinite 0.16s; }
.useful-word { animation: contactUsefulConfirm 2.9s ease-in-out infinite 0.28s; }
.useful-word::after {
  content: ""; position: absolute; left: 0.08em; right: 0.08em; bottom: 0.05em; height: 0.12em;
  border-radius: 999px; background: linear-gradient(90deg, rgba(217,249,157,0.08), rgba(217,249,157,0.36), rgba(217,249,157,0.08));
  animation: contactUsefulUnderline 2.9s ease-in-out infinite 0.28s;
}

.contact-sticker { position: absolute; pointer-events: none; user-select: none; display: inline-flex; align-items: center; justify-content: center; }
.contact-gear {
  top: -0.18em; right: 3.55rem; width: 1.35em; height: 1.35em; border-radius: 50%;
  border: 1px solid rgba(140,200,255,0.30); color: var(--accent); background: rgba(140,200,255,0.055);
  font-size: 0.76em; animation: contactGearSpin 5.6s linear infinite;
}
.contact-blocks { right: 1.85rem; bottom: 0.36rem; width: 1.25em; height: 1.1em; }
.contact-blocks i {
  position: absolute; width: 0.44em; height: 0.44em; border-radius: 0.12em;
  border: 1px solid rgba(217,249,157,0.55); background: rgba(217,249,157,0.10);
  animation: contactBlockStack 1.6s ease-in-out infinite;
}
.contact-blocks i:nth-child(1) { left: 0.05em; bottom: 0.02em; }
.contact-blocks i:nth-child(2) { left: 0.43em; bottom: 0.02em; animation-delay: 0.12s; }
.contact-blocks i:nth-child(3) { left: 0.24em; bottom: 0.40em; animation-delay: 0.24s; }
.contact-check {
  top: 0.06em; right: 0.14rem; width: 1.35em; height: 1.35em; border-radius: 50%;
  border: 2px solid rgba(217,249,157,0.68); color: var(--accent-2); font-size: 0.74em; font-weight: 900;
  animation: contactCheckPulse 1.8s ease-in-out infinite;
}

.contact-signal-line {
  position: absolute; left: 36%; right: 31%; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140,200,255,0.20), rgba(217,249,157,0.28), transparent);
  pointer-events: none; opacity: 0.9;
}
.contact-signal-line span {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 16px rgba(217,249,157,0.65);
  animation: contactSignalTravel 2.4s ease-in-out infinite;
}
.contact-signal-line span:nth-child(2) { animation-delay: 0.32s; }
.contact-signal-line span:nth-child(3) { animation-delay: 0.64s; }

.contact-status-chips span { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.contact-status-chips span i, .terminal-status span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.62); animation: contactStatusPulse 1.35s ease-in-out infinite;
}
.contact-status-chips span:nth-child(2) i { animation-delay: 0.18s; }
.contact-status-chips span:nth-child(3) i { animation-delay: 0.36s; }

.contact-terminal-card { min-width: min(320px, 100%); position: relative; overflow: hidden; }
.contact-terminal-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(217,249,157,0.06) 48%, transparent 56% 100%);
  transform: translateX(-120%); animation: contactTerminalSweep 3.4s ease-in-out infinite; pointer-events: none;
}
.terminal-line, .terminal-status { color: var(--muted); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.01em; }
.terminal-line { margin: 10px 0 8px; }
.terminal-prompt { color: var(--accent-2); margin-right: 6px; }
.terminal-status { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; }

.contact-action-buttons .btn { position: relative; display: inline-flex; align-items: center; gap: 9px; overflow: hidden; }
.btn-icon { position: relative; display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.envelope-icon { border: 2px solid currentColor; border-radius: 4px; }
.envelope-icon::before, .envelope-icon::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 2px; background: currentColor; transform-origin: center;
}
.envelope-icon::before { transform: rotate(28deg); }
.envelope-icon::after { transform: rotate(-28deg); }
.contact-email-btn:hover .envelope-icon { animation: envelopeSend 0.7s ease-in-out; }

.linkedin-node-icon i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.linkedin-node-icon i:nth-child(1) { left: 1px; top: 2px; }
.linkedin-node-icon i:nth-child(2) { right: 1px; top: 2px; }
.linkedin-node-icon i:nth-child(3) { left: 6px; bottom: 1px; }
.linkedin-node-icon::before, .linkedin-node-icon::after {
  content: ""; position: absolute; height: 2px; border-radius: 999px; background: currentColor; opacity: 0.65; transform-origin: left center;
}
.linkedin-node-icon::before { left: 7px; top: 5px; width: 8px; }
.linkedin-node-icon::after { left: 8px; top: 11px; width: 8px; transform: rotate(-35deg); }
.contact-linkedin-btn:hover .linkedin-node-icon i,
.contact-linkedin-btn:hover .linkedin-node-icon::before,
.contact-linkedin-btn:hover .linkedin-node-icon::after { animation: contactNodeConnect 0.85s ease-in-out; }

@keyframes contactBuildTap { 0%,100%{transform:translateY(0) rotate(0)} 44%{transform:translateY(-2px) rotate(-0.4deg)} 56%{transform:translateY(1px) rotate(0.35deg)} }
@keyframes contactBlocksLift { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-1.5px)} }
@keyframes contactUsefulConfirm { 0%,100%{transform:scale(1)} 50%{transform:scale(1.012)} }
@keyframes contactUsefulUnderline { 0%,100%{transform:scaleX(0.38);opacity:.42} 50%{transform:scaleX(1);opacity:.96} }
@keyframes contactGearSpin { to { transform: rotate(360deg); } }
@keyframes contactBlockStack { 0%,100%{transform:translateY(0);opacity:.74} 50%{transform:translateY(-2px);opacity:1} }
@keyframes contactCheckPulse { 0%,100%{transform:scale(.96);opacity:.72} 50%{transform:scale(1.05);opacity:1} }
@keyframes contactSignalTravel { 0%{transform:translateX(0) scale(.7);opacity:0} 18%,78%{opacity:1} 100%{transform:translateX(1000%) scale(1);opacity:0} }
@keyframes contactStatusPulse { 0%,100%{transform:scale(.78);opacity:.65} 50%{transform:scale(1.16);opacity:1} }
@keyframes contactTerminalSweep { 0%,58%{transform:translateX(-120%);opacity:0} 72%{opacity:1} 100%{transform:translateX(120%);opacity:0} }
@keyframes envelopeSend { 0%,100%{transform:translateX(0) rotate(0)} 45%{transform:translateX(5px) rotate(-8deg)} 70%{transform:translateX(-2px) rotate(3deg)} }
@keyframes contactNodeConnect { 0%,100%{opacity:.72;transform:scale(1)} 50%{opacity:1;transform:scale(1.14)} }

@media (max-width: 900px) {
  .contact-signal-line { display: none; }
  .contact-title { padding-right: 3.2rem; }
  .contact-gear { right: 2.2rem; }
  .contact-blocks { display: none; }
  .contact-check { right: 0; }
}


/* Contact Launch Panel cleanup:
   remove the busy cross-section signal line and make heading icons subtle */
.contact-launch-panel {
  overflow: hidden;
}

.contact-launch-panel .contact-signal-line {
  display: none !important;
}

.contact-launch-panel::before {
  opacity: 0.72;
}

.contact-title {
  padding-right: 0;
  gap: 0.16em;
}

.contact-sticker {
  position: static;
  margin-left: 8px;
  transform: none;
  flex: 0 0 auto;
}

.contact-gear {
  width: 1.04em;
  height: 1.04em;
  font-size: 0.58em;
  opacity: 0.72;
  vertical-align: middle;
}

.contact-blocks {
  width: 1.05em;
  height: 0.9em;
  margin-left: 4px;
  opacity: 0.72;
}

.contact-check {
  width: 1.06em;
  height: 1.06em;
  font-size: 0.58em;
  margin-left: 4px;
  opacity: 0.78;
}

.useful-word::after {
  bottom: -0.03em;
  height: 0.1em;
  opacity: 0.75;
}

.contact-terminal-card {
  backdrop-filter: blur(14px);
}

.contact-terminal-card::before {
  opacity: 0.55;
}

.contact-status-chips span i,
.terminal-status span {
  animation-duration: 1.8s;
}

@media (max-width: 900px) {
  .contact-gear,
  .contact-blocks,
  .contact-check {
    display: none;
  }

  .contact-title {
    padding-right: 0;
  }
}


/* CMD terminal contact card */
.contact-terminal-card {
  padding: 0 !important;
  max-width: 400px;
  min-width: min(340px, 100%);
  border-radius: 18px;
  overflow: hidden;
  background: #0b0f14 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 42px rgba(0,0,0,0.28);
  backdrop-filter: none;
}

.contact-terminal-card::before,
.contact-terminal-card::after {
  display: none !important;
  content: none !important;
}

.contact-terminal-card .mini-label,
.contact-terminal-card .terminal-line,
.contact-terminal-card .terminal-status,
.contact-terminal-card > strong {
  display: none !important;
}

.cmd-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #d6d8dd, #b9bec7);
  border-bottom: 1px solid rgba(0,0,0,0.28);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cmd-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cmd-controls i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(17,24,39,0.72);
  opacity: 0.85;
}

.cmd-body {
  padding: 16px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    #0b0f14;
  color: #f3f4f6;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.98rem;
  line-height: 1.55;
}

.cmd-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cmd-line + .cmd-output {
  margin-top: 6px;
  margin-bottom: 12px;
}

.cmd-path {
  color: #d9f99d;
  font-weight: 700;
}

.cmd-command {
  color: #cbd5e1;
}

.cmd-output {
  padding-left: 4px;
  color: #f8fafc;
  word-break: break-word;
}

.cmd-email {
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 700;
}

.cmd-status-text {
  color: #d9f99d;
  font-weight: 700;
}

.cmd-cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: #f8fafc;
  vertical-align: -0.18em;
  animation: cmdCursorBlink 1s steps(2, start) infinite;
}

@keyframes cmdCursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 560px) {
  .contact-terminal-card {
    min-width: 100%;
    max-width: none;
  }

  .cmd-body {
    font-size: 0.92rem;
    padding: 14px 15px 16px;
  }

  .cmd-titlebar {
    padding: 9px 12px;
  }
}


/* Contact terminal prompt cleanup */
.cmd-title {
  letter-spacing: 0.01em;
}

.cmd-path {
  color: var(--accent-2);
  font-weight: 900;
}

.cmd-command {
  color: #dbeafe;
}

.cmd-status-text {
  color: #d9f99d;
}


/* Contact section reorientation: fill empty space with useful structured content */
.contact-launch-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(34px, 5vw, 52px);
}

.contact-launch-panel .contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

.contact-launch-panel .contact-panel {
  align-content: center;
  justify-items: stretch;
  min-width: 0;
}

.contact-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.contact-status-grid span {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 14px;
  border-radius: 18px;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  row-gap: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.028)),
    rgba(217,249,157,0.04);
}

.contact-status-grid span i {
  grid-row: 1 / span 2;
  margin-top: 7px;
}

.contact-status-grid span strong {
  color: var(--accent-2);
  font-size: 0.9rem;
  line-height: 1.15;
}

.contact-status-grid span small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 800;
}

.contact-focus-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.028);
}

.contact-focus-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(140,200,255,0.055);
  border: 1px solid rgba(140,200,255,0.11);
}

.contact-terminal-card {
  max-width: none;
}

.contact-action-buttons {
  margin-top: 20px;
  justify-content: flex-end;
}

.contact-next-step {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    radial-gradient(circle at 90% 20%, rgba(217,249,157,0.08), transparent 48%);
}

.next-step-label {
  display: block;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}

.contact-next-step strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .contact-launch-panel {
    grid-template-columns: 1fr;
  }

  .contact-launch-panel .contact-copy {
    min-height: auto;
  }

  .contact-status-grid {
    grid-template-columns: 1fr;
  }

  .contact-action-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .contact-launch-panel {
    padding: 28px 20px;
  }

  .contact-focus-strip {
    padding: 12px;
  }
}


/* Contact capabilities: make the lower-left area meaningful and navigable */
.contact-focus-strip {
  display: none;
}

.contact-capability-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    radial-gradient(circle at 8% 0%, rgba(140,200,255,0.08), transparent 46%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capability-label {
  grid-column: 1 / -1;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.capability-card {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 11px;
  row-gap: 3px;
  padding: 14px;
  min-height: 116px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(140,200,255,0.14), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(217,249,157,0.10), transparent 42%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217,249,157,0.22);
  background: rgba(217,249,157,0.045);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}

.capability-card:hover::before {
  opacity: 1;
}

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

.capability-icon {
  grid-row: 1 / span 3;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(140,200,255,0.16);
  background: rgba(140,200,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.capability-icon i {
  position: absolute;
  display: block;
}

.ai-capability-icon i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.55);
  animation: capabilityPulse 1.2s ease-in-out infinite;
}
.ai-capability-icon i:nth-child(1) { left: 9px; top: 11px; }
.ai-capability-icon i:nth-child(2) { right: 9px; top: 11px; animation-delay: 0.16s; }
.ai-capability-icon i:nth-child(3) { left: 16px; bottom: 9px; animation-delay: 0.32s; }

.backend-capability-icon i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,200,255,0.35), var(--accent-2));
}
.backend-capability-icon i:nth-child(1) { left: 8px; right: 8px; top: 12px; animation: capabilityPacket 1.4s ease-in-out infinite; }
.backend-capability-icon i:nth-child(2) { left: 8px; right: 14px; top: 19px; animation: capabilityPacket 1.4s ease-in-out infinite 0.14s; }
.backend-capability-icon i:nth-child(3) { left: 8px; right: 20px; top: 26px; animation: capabilityPacket 1.4s ease-in-out infinite 0.28s; }

.data-capability-icon i {
  left: 9px;
  right: 9px;
  height: 8px;
  border-radius: 50% / 30%;
  border: 2px solid rgba(217,249,157,0.62);
  background: rgba(217,249,157,0.05);
  animation: capabilityData 1.5s ease-in-out infinite;
}
.data-capability-icon i:nth-child(1) { top: 9px; }
.data-capability-icon i:nth-child(2) { top: 16px; animation-delay: 0.13s; }
.data-capability-icon i:nth-child(3) { top: 23px; animation-delay: 0.26s; }

.product-capability-icon i {
  border-radius: 5px;
  border: 1px solid rgba(217,249,157,0.62);
  background: rgba(217,249,157,0.055);
  animation: capabilityProduct 1.45s ease-in-out infinite;
}
.product-capability-icon i:nth-child(1) { left: 8px; top: 8px; width: 10px; height: 20px; }
.product-capability-icon i:nth-child(2) { right: 8px; top: 8px; width: 12px; height: 9px; animation-delay: 0.12s; }
.product-capability-icon i:nth-child(3) { right: 8px; bottom: 8px; width: 12px; height: 9px; animation-delay: 0.24s; }

.capability-card strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.15;
}

.capability-card small {
  color: var(--muted);
  font-weight: 750;
  font-size: 0.78rem;
  line-height: 1.3;
}

.capability-card em {
  color: var(--accent);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 900;
  margin-top: 4px;
}

.capability-card:hover em {
  color: var(--accent-2);
}

@keyframes capabilityPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes capabilityPacket {
  0%, 100% { transform: translateX(-2px); opacity: 0.45; }
  50% { transform: translateX(4px); opacity: 1; }
}

@keyframes capabilityData {
  0%, 100% { transform: scaleX(0.9); opacity: 0.62; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes capabilityProduct {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-2px); opacity: 1; }
}

@media (max-width: 980px) {
  .contact-capability-panel {
    grid-template-columns: 1fr;
  }
}


/* Ask Pathik AI — local portfolio assistant */
.portfolio-ai-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(217,249,157,0.28);
  border-radius: 999px;
  padding: 12px 16px 12px 12px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    rgba(15,23,42,0.88);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.portfolio-ai-toggle:hover {
  transform: translateY(-3px);
  border-color: rgba(217,249,157,0.48);
  box-shadow:
    0 22px 52px rgba(0,0,0,0.40),
    0 0 0 1px rgba(217,249,157,0.08);
}

.ai-toggle-orb {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(140,200,255,0.22);
  background: rgba(140,200,255,0.08);
}

.ai-toggle-orb i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.68);
  animation: aiTogglePulse 1.35s ease-in-out infinite;
}

.ai-toggle-orb i:nth-child(1) { left: 8px; top: 9px; }
.ai-toggle-orb i:nth-child(2) { right: 7px; top: 9px; animation-delay: 0.16s; }
.ai-toggle-orb i:nth-child(3) { left: 13px; bottom: 7px; animation-delay: 0.32s; }

.portfolio-ai-panel {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 119;
  width: min(430px, calc(100vw - 32px));
  transform: translateY(16px) scale(0.96);
  transform-origin: right bottom;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.portfolio-ai-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.portfolio-ai-shell {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045)),
    rgba(10,16,31,0.94);
  box-shadow: 0 26px 70px rgba(0,0,0,0.46);
  backdrop-filter: blur(18px);
}

.portfolio-ai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.075);
}

.portfolio-ai-kicker {
  display: block;
  color: var(--accent-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-bottom: 4px;
}

.portfolio-ai-header h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.portfolio-ai-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.portfolio-ai-note {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(140,200,255,0.12);
  background: rgba(140,200,255,0.055);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 800;
}

.portfolio-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.portfolio-ai-suggestions button {
  border: 1px solid rgba(217,249,157,0.16);
  border-radius: 999px;
  background: rgba(217,249,157,0.055);
  color: var(--accent-2);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.portfolio-ai-suggestions button:hover {
  transform: translateY(-2px);
  border-color: rgba(217,249,157,0.34);
  background: rgba(217,249,157,0.09);
}

.portfolio-ai-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(44vh, 390px);
  overflow-y: auto;
  padding: 16px 18px;
  scroll-behavior: smooth;
}

.ai-message {
  max-width: 92%;
  border-radius: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,0.075);
  line-height: 1.55;
  font-size: 0.92rem;
}

.ai-message p {
  margin: 0 0 8px;
  color: inherit;
}

.ai-message p:last-child {
  margin-bottom: 0;
}

.assistant-message {
  align-self: flex-start;
  background: rgba(255,255,255,0.045);
  color: var(--text);
}

.user-message {
  align-self: flex-end;
  background: rgba(217,249,157,0.10);
  color: var(--text);
  border-color: rgba(217,249,157,0.18);
}

.ai-message ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ai-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-source-chip {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(140,200,255,0.065);
  border: 1px solid rgba(140,200,255,0.12);
  font-size: 0.72rem;
  font-weight: 900;
}

.portfolio-ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.075);
}

.portfolio-ai-input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255,255,255,0.055);
  outline: none;
  font: inherit;
}

.portfolio-ai-input:focus {
  border-color: rgba(217,249,157,0.34);
  box-shadow: 0 0 0 3px rgba(217,249,157,0.08);
}

.portfolio-ai-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--text);
  color: #0b1020;
  font-weight: 900;
  cursor: pointer;
}

@keyframes aiTogglePulse {
  0%, 100% { transform: scale(0.82); opacity: 0.62; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (max-width: 640px) {
  .portfolio-ai-toggle {
    right: 16px;
    bottom: 16px;
  }

  .portfolio-ai-toggle > span:last-child {
    display: none;
  }

  .portfolio-ai-panel {
    right: 16px;
    bottom: 68px;
    width: calc(100vw - 32px);
  }

  .portfolio-ai-messages {
    max-height: 48vh;
  }
}


/* Ask Pathik AI: hide suggested prompts after the first question */
.portfolio-ai-suggestions.suggestions-hidden {
  display: none;
}


/* Ask Pathik AI: larger, more comfortable chat box */
.portfolio-ai-panel {
  width: min(620px, calc(100vw - 40px));
  bottom: 92px;
}

.portfolio-ai-shell {
  min-height: min(720px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
}

.portfolio-ai-messages {
  flex: 1;
  max-height: none;
  min-height: 360px;
}

.portfolio-ai-note {
  font-size: 0.86rem;
}

.portfolio-ai-suggestions {
  gap: 10px;
}

.portfolio-ai-suggestions button {
  font-size: 0.8rem;
  padding: 8px 11px;
}

.ai-message {
  font-size: 0.95rem;
  max-width: 88%;
}

.portfolio-ai-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portfolio-ai-input {
  padding: 14px 16px;
}

.portfolio-ai-form button {
  padding: 14px 18px;
}

@media (max-width: 720px) {
  .portfolio-ai-panel {
    right: 16px;
    bottom: 72px;
    width: calc(100vw - 32px);
  }

  .portfolio-ai-shell {
    min-height: min(680px, calc(100vh - 96px));
  }

  .portfolio-ai-messages {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .portfolio-ai-shell {
    min-height: min(640px, calc(100vh - 92px));
  }

  .portfolio-ai-messages {
    min-height: 280px;
  }

  .ai-message {
    max-width: 94%;
  }
}


/* Add breathing room between contact section and footer */
.contact-section {
  margin-bottom: clamp(56px, 7vw, 96px);
}

.footer {
  padding-top: 34px;
}

@media (max-width: 640px) {
  .contact-section {
    margin-bottom: 52px;
  }
}


/* Contact actions: resume + copy email */
.contact-action-buttons {
  align-items: center;
}

.contact-action-buttons button.btn {
  font: inherit;
  cursor: pointer;
}

.resume-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.resume-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  opacity: 0.78;
}

.resume-icon::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: inherit;
  border-radius: 0 2px 0 2px;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.copy-icon::before {
  left: 1px;
  top: 4px;
  opacity: 0.56;
}

.copy-icon::after {
  right: 1px;
  top: 0;
  background: rgba(255,255,255,0.04);
}

.contact-copy-btn.copied {
  border-color: rgba(217,249,157,0.42);
  color: var(--accent-2);
  background: rgba(217,249,157,0.08);
}

.contact-resume-btn:hover .resume-icon,
.contact-copy-btn:hover .copy-icon {
  animation: contactActionPop 0.5s ease;
}

@keyframes contactActionPop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.06); }
}

/* Resume page */
.resume-page-body {
  min-height: 100vh;
}

.resume-page {
  padding: 42px 0 86px;
}

.resume-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.resume-back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.resume-back:hover {
  color: var(--accent-2);
}

.resume-sheet {
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(15,23,42,0.72);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
}

.resume-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-bottom: 26px;
  margin-bottom: 28px;
}

.resume-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.07em;
  margin-bottom: 10px;
}

.resume-hero p {
  color: var(--muted);
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.resume-contact {
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(217,249,157,0.14);
  background: rgba(217,249,157,0.045);
}

.resume-contact a,
.resume-contact span {
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  font-size: 0.92rem;
}

.resume-section {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.resume-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume-section h2 {
  color: var(--accent-2);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.resume-item {
  margin-bottom: 22px;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item h3 {
  margin-bottom: 5px;
  color: var(--text);
}

.resume-meta {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.resume-item ul {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.resume-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.resume-pill-row span {
  color: var(--muted);
  border: 1px solid rgba(140,200,255,0.14);
  background: rgba(140,200,255,0.055);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 840px) {
  .resume-hero,
  .resume-section {
    grid-template-columns: 1fr;
  }

  .resume-contact {
    min-width: 0;
  }

  .resume-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Contact action button layout: email on top, resume + copy side-by-side */
.contact-action-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(400px, 100%);
  justify-self: end;
  justify-content: stretch !important;
}

.contact-action-buttons .contact-email-btn {
  grid-column: 1 / -1;
  justify-content: center;
}

.contact-action-buttons .contact-resume-btn,
.contact-action-buttons .contact-copy-btn {
  justify-content: center;
  width: 100%;
}

@media (max-width: 980px) {
  .contact-action-buttons {
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .contact-action-buttons {
    grid-template-columns: 1fr;
  }

  .contact-action-buttons .contact-email-btn {
    grid-column: auto;
  }
}


/* Contact right side spacing alignment:
   use intentional vertical rhythm instead of forced stretch */
@media (min-width: 981px) {
  .contact-launch-panel {
    align-items: center;
  }

  .contact-launch-panel .contact-panel {
    display: grid !important;
    align-content: center;
    justify-items: stretch;
    gap: 26px;
    padding-top: 18px;
  }

  .contact-terminal-card {
    width: 100%;
    margin-bottom: 10px;
  }

  .contact-action-buttons {
    margin-top: 0;
    margin-bottom: 0;
  }

  .contact-next-step {
    width: 100%;
    margin-top: 0;
  }
}

@media (min-width: 1100px) {
  .contact-launch-panel .contact-panel {
    gap: 28px;
    padding-top: 28px;
  }
}


/* Scroll-reactive 3D background */
body {
  position: relative;
  overflow-x: hidden;
}

.scroll-3d-background {
  --scroll-progress: 0;
  --scroll-shift: 0px;
  --scroll-rotate: 0deg;
  --scroll-depth: 0px;
  --cursor-x: 50%;
  --cursor-y: 50%;
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(140,200,255,0.10), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(217,249,157,0.07), transparent 30%),
    linear-gradient(180deg, #070b16 0%, #101827 50%, #070c18 100%);
  perspective: 1100px;
}

.scroll-3d-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 50%, rgba(0,0,0,0.42) 100%),
    linear-gradient(180deg, rgba(7,11,22,0.10), rgba(7,11,22,0.44));
}

.scroll-3d-scene {
  position: absolute;
  inset: -12vh -8vw;
  transform-style: preserve-3d;
  transform:
    translate3d(0, calc(var(--scroll-shift) * -0.18), var(--scroll-depth))
    rotateX(62deg)
    rotateZ(var(--scroll-rotate));
  transition: transform 0.08s linear;
}

.scroll-depth-grid {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 180vw;
  height: 180vw;
  min-width: 1300px;
  min-height: 1300px;
  transform: translate(-50%, -50%) translateZ(-180px);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(140,200,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,200,255,0.12) 1px, transparent 1px);
  background-size: 82px 82px;
  background-position:
    0 calc(var(--scroll-shift) * 0.9),
    calc(var(--scroll-shift) * -0.35) 0;
  opacity: 0.24;
  mask-image: radial-gradient(circle, #000 0 48%, transparent 74%);
}

.scroll-depth-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217,249,157,0.36) 0 1.7px, transparent 2.5px);
  background-size: 164px 164px;
  background-position: 42px calc(40px + var(--scroll-shift) * 0.45);
  opacity: 0.24;
}

.scroll-rail {
  position: absolute;
  top: -20vh;
  height: 170vh;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(217,249,157,0.42), rgba(140,200,255,0.22), transparent);
  box-shadow: 0 0 26px rgba(217,249,157,0.16);
  transform: translateZ(60px);
  opacity: 0.46;
}

.scroll-rail-left {
  left: 36%;
}

.scroll-rail-right {
  right: 36%;
}

.scroll-stage {
  position: absolute;
  left: 50%;
  width: 190px;
  height: 54px;
  margin-left: -95px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(140,200,255,0.14);
  background: rgba(10,16,31,0.36);
  color: rgba(255,255,255,0.58);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transform-style: preserve-3d;
  transform: translate3d(var(--stage-x), calc(var(--stage-y) - var(--scroll-shift)), var(--stage-z)) rotateX(-58deg) rotateY(var(--stage-tilt));
  opacity: 0.34;
  transition: opacity 0.26s ease, border-color 0.26s ease, background 0.26s ease, color 0.26s ease, box-shadow 0.26s ease;
}

.scroll-stage i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(140,200,255,0.45);
  box-shadow: 0 0 16px rgba(140,200,255,0.35);
}

.scroll-stage strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

.stage-home { --stage-y: 14vh; --stage-x: -28vw; --stage-z: 180px; --stage-tilt: 20deg; }
.stage-toolkit { --stage-y: 56vh; --stage-x: 25vw; --stage-z: 130px; --stage-tilt: -18deg; }
.stage-work { --stage-y: 104vh; --stage-x: -24vw; --stage-z: 150px; --stage-tilt: 16deg; }
.stage-projects { --stage-y: 154vh; --stage-x: 24vw; --stage-z: 120px; --stage-tilt: -16deg; }
.stage-contact { --stage-y: 204vh; --stage-x: -12vw; --stage-z: 165px; --stage-tilt: 10deg; }

.scroll-3d-background[data-active-section="home"] .stage-home,
.scroll-3d-background[data-active-section="skills"] .stage-toolkit,
.scroll-3d-background[data-active-section="experience"] .stage-work,
.scroll-3d-background[data-active-section="projects"] .stage-projects,
.scroll-3d-background[data-active-section="recognition"] .stage-recognition,
.scroll-3d-background[data-active-section="education"] .stage-education,
.scroll-3d-background[data-active-section="contact"] .stage-contact {
  opacity: 0.88;
  color: var(--text);
  border-color: rgba(217,249,157,0.34);
  background: rgba(217,249,157,0.075);
  box-shadow: 0 22px 52px rgba(0,0,0,0.24), 0 0 0 1px rgba(217,249,157,0.06);
}

.scroll-3d-background[data-active-section="home"] .stage-home i,
.scroll-3d-background[data-active-section="skills"] .stage-toolkit i,
.scroll-3d-background[data-active-section="experience"] .stage-work i,
.scroll-3d-background[data-active-section="projects"] .stage-projects i,
.scroll-3d-background[data-active-section="recognition"] .stage-recognition i,
.scroll-3d-background[data-active-section="education"] .stage-education i,
.scroll-3d-background[data-active-section="contact"] .stage-contact i {
  background: var(--accent-2);
  box-shadow: 0 0 22px rgba(217,249,157,0.74);
}

.scroll-cube {
  --size: 90px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  opacity: 0.38;
  filter: drop-shadow(0 0 26px rgba(140,200,255,0.12));
}

.scroll-cube i {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(217,249,157,0.28);
  background: rgba(140,200,255,0.028);
  box-shadow: inset 0 0 20px rgba(217,249,157,0.035);
}

.scroll-cube i:nth-child(1) { transform: translateZ(calc(var(--size) / 2)); }
.scroll-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.scroll-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.scroll-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.scroll-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.scroll-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }

.scroll-cube-one {
  left: 14vw;
  top: 42vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.45), 220px) rotateX(calc(44deg + var(--scroll-progress) * 120deg)) rotateY(calc(24deg + var(--scroll-progress) * 180deg));
}

.scroll-cube-two {
  --size: 68px;
  right: 16vw;
  top: 86vh;
  opacity: 0.30;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.62), 170px) rotateX(calc(20deg + var(--scroll-progress) * -160deg)) rotateY(calc(-30deg + var(--scroll-progress) * 220deg));
}

.scroll-cursor-glow {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 7;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217,249,157,0.13) 0%, rgba(140,200,255,0.08) 34%, transparent 70%);
  opacity: 0.72;
  mix-blend-mode: screen;
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-3d-scene,
  .scroll-depth-grid,
  .scroll-stage,
  .scroll-cube,
  .scroll-cursor-glow {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .scroll-stage {
    opacity: 0.18;
  }

  .scroll-cube {
    opacity: 0.20;
  }

  .scroll-rail-left {
    left: 28%;
  }

  .scroll-rail-right {
    right: 28%;
  }
}

@media (max-width: 640px) {
  .scroll-stage,
  .scroll-cube,
  .scroll-cursor-glow {
    display: none;
  }

  .scroll-depth-grid {
    opacity: 0.18;
  }
}


/* Scroll-reactive coding background upgrade */
.coding-scroll-background {
  --scroll-progress: 0;
  --scroll-shift: 0px;
  --scroll-rotate: 0deg;
  --scroll-depth: 0px;
  --cursor-x: 50%;
  --cursor-y: 50%;
  background:
    radial-gradient(circle at 16% 12%, rgba(140,200,255,0.16), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(217,249,157,0.12), transparent 29%),
    linear-gradient(180deg, #060a14 0%, #101827 48%, #070b16 100%);
}

.coding-scroll-background .scroll-3d-scene,
.coding-scroll-background .scroll-depth-grid,
.coding-scroll-background .scroll-cube,
.coding-scroll-background .scroll-rail {
  display: none !important;
}

.coding-depth-scene {
  position: absolute;
  inset: -10vh -8vw;
  transform-style: preserve-3d;
  transform:
    translate3d(0, calc(var(--scroll-shift) * -0.22), var(--scroll-depth))
    rotateX(58deg)
    rotateZ(var(--scroll-rotate));
  transition: transform 0.08s linear;
}

.coding-grid-plane {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 190vw;
  height: 190vw;
  min-width: 1350px;
  min-height: 1350px;
  transform: translate(-50%, -50%) translateZ(-160px);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(140,200,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,200,255,0.16) 1px, transparent 1px),
    linear-gradient(rgba(217,249,157,0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(217,249,157,0.08) 2px, transparent 2px);
  background-size: 72px 72px, 72px 72px, 288px 288px, 288px 288px;
  background-position:
    0 calc(var(--scroll-shift) * 0.82),
    calc(var(--scroll-shift) * -0.34) 0,
    0 calc(var(--scroll-shift) * 0.42),
    calc(var(--scroll-shift) * -0.18) 0;
  opacity: 0.42;
  mask-image: radial-gradient(circle, #000 0 50%, transparent 76%);
}

.coding-grid-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(217,249,157,0.58) 0 2px, transparent 3px);
  background-size: 144px 144px;
  background-position: 40px calc(34px + var(--scroll-shift) * 0.48);
  opacity: 0.34;
}

.coding-rail {
  position: absolute;
  top: -10vh;
  height: 170vh;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(217,249,157,0.74), rgba(140,200,255,0.38), transparent);
  box-shadow: 0 0 36px rgba(217,249,157,0.25);
  transform: translateZ(90px);
  opacity: 0.72;
}

.coding-rail-left { left: 31%; }
.coding-rail-right { right: 31%; }

.code-panel {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 7px;
  min-width: 290px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(217,249,157,0.22);
  background:
    linear-gradient(180deg, rgba(8,13,26,0.76), rgba(8,13,26,0.42)),
    rgba(10,16,31,0.62);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(140,200,255,0.06);
  backdrop-filter: blur(5px);
  color: rgba(226,232,240,0.72);
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.18;
  transform-style: preserve-3d;
  opacity: 0.72;
}

.code-panel em {
  font-style: normal;
  white-space: nowrap;
}

.code-panel em:nth-child(1),
.code-panel em:nth-child(5) {
  color: rgba(217,249,157,0.82);
}

.code-panel em:nth-child(2),
.code-panel em:nth-child(3) {
  color: rgba(140,200,255,0.82);
}

.code-panel-one {
  left: 6vw;
  top: 18vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.30), 210px) rotateX(-48deg) rotateY(22deg) rotateZ(-6deg);
}

.code-panel-two {
  right: 5vw;
  top: 54vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.52), 240px) rotateX(-50deg) rotateY(-20deg) rotateZ(7deg);
}

.code-panel-three {
  left: 54vw;
  top: 112vh;
  min-width: 260px;
  opacity: 0.62;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.68), 190px) rotateX(-52deg) rotateY(-12deg) rotateZ(4deg);
}

.code-token {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 50px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(140,200,255,0.20);
  background: rgba(140,200,255,0.07);
  color: rgba(217,249,157,0.76);
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transform-style: preserve-3d;
}

.token-one {
  left: 22vw;
  top: 70vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.45), 260px) rotateX(-56deg) rotateY(24deg);
}

.token-two {
  right: 23vw;
  top: 26vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.28), 180px) rotateX(-54deg) rotateY(-18deg);
}

.token-three {
  right: 18vw;
  top: 124vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.70), 220px) rotateX(-56deg) rotateY(-24deg);
}

.token-four {
  left: 16vw;
  top: 142vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.75), 190px) rotateX(-58deg) rotateY(20deg);
}

.token-five {
  left: 72vw;
  top: 88vh;
  transform: translate3d(0, calc(var(--scroll-shift) * -0.58), 180px) rotateX(-52deg) rotateY(-10deg);
}

.coding-scroll-background .scroll-stage {
  background: rgba(10,16,31,0.52);
  border-color: rgba(217,249,157,0.18);
  opacity: 0.48;
}

.coding-scroll-background[data-active-section="home"] .stage-home,
.coding-scroll-background[data-active-section="skills"] .stage-toolkit,
.coding-scroll-background[data-active-section="experience"] .stage-work,
.coding-scroll-background[data-active-section="projects"] .stage-projects,
.coding-scroll-background[data-active-section="recognition"] .stage-recognition,
.coding-scroll-background[data-active-section="education"] .stage-education,
.coding-scroll-background[data-active-section="contact"] .stage-contact {
  opacity: 0.98;
  background: rgba(217,249,157,0.11);
  border-color: rgba(217,249,157,0.48);
  box-shadow: 0 22px 56px rgba(0,0,0,0.30), 0 0 28px rgba(217,249,157,0.10);
}

.coding-scroll-background .scroll-cursor-glow {
  width: 560px;
  height: 560px;
  background:
    radial-gradient(circle, rgba(217,249,157,0.16) 0%, rgba(140,200,255,0.11) 34%, transparent 70%);
  mix-blend-mode: screen;
}

@media (max-width: 980px) {
  .code-panel {
    opacity: 0.42;
    min-width: 230px;
    font-size: 0.76rem;
  }

  .code-panel-one { left: -40px; }
  .code-panel-two { right: -50px; }

  .code-token {
    opacity: 0.45;
  }
}

@media (max-width: 640px) {
  .code-panel,
  .code-token,
  .coding-rail,
  .scroll-stage,
  .scroll-cursor-glow {
    display: none;
  }

  .coding-grid-plane {
    opacity: 0.28;
  }
}

/* Ask Pathik AI fixed-size chat box with scrollable messages */
.portfolio-ai-panel {
  width: min(620px, calc(100vw - 40px));
  max-width: 620px;
}

.portfolio-ai-shell {
  height: min(720px, calc(100vh - 120px));
  max-height: min(720px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header, note, suggestions, and input stay fixed */
.portfolio-ai-header,
.portfolio-ai-note,
.portfolio-ai-suggestions,
.portfolio-ai-form {
  flex: 0 0 auto;
}

/* Only this middle chat area scrolls */
.portfolio-ai-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

/* Cleaner scrollbar */
.portfolio-ai-messages::-webkit-scrollbar {
  width: 8px;
}

.portfolio-ai-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.portfolio-ai-messages::-webkit-scrollbar-thumb {
  background: rgba(217, 249, 157, 0.28);
  border-radius: 999px;
}

.portfolio-ai-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 249, 157, 0.45);
}

/* Mobile-safe sizing */
@media (max-width: 640px) {
  .portfolio-ai-panel {
    width: calc(100vw - 24px);
  }

  .portfolio-ai-shell {
    height: min(680px, calc(100vh - 92px));
    max-height: min(680px, calc(100vh - 92px));
  }
}

.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(217,249,157,0.18);
  background: rgba(217,249,157,0.06);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.visit-counter strong {
  color: var(--accent-2);
  font-size: 1rem;
}

.recommendation-section {
  position: relative;
}

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

.recommendation-card {
  position: relative;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
  overflow: hidden;
}

.recommendation-card::before {
  content: "“";
  position: absolute;
  right: 22px;
  top: -18px;
  font-size: 7rem;
  line-height: 1;
  color: rgba(217,249,157,0.10);
  font-weight: 900;
}

.recommendation-type {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217,249,157,0.18);
  background: rgba(217,249,157,0.07);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recommendation-card p {
  position: relative;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.recommendation-card strong {
  display: block;
  color: var(--accent);
  font-size: 0.98rem;
}

.recommendation-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

/* Make visit counter match hero stat cards */
.quick-stats .visit-counter,
.quick-stats .stat-visit-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.quick-stats .visit-counter strong,
.quick-stats .stat-visit-card strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent-2);
  line-height: 1.1;
}

.quick-stats .visit-counter span,
.quick-stats .stat-visit-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  margin-top: 4px;
}

.quick-stats .visit-counter:hover,
.quick-stats .stat-visit-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(217,249,157,0.40);
  background: rgba(217,249,157,0.08);
}

/* Make all hero stat cards use the same hover emboss effect */
.quick-stats div {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.quick-stats div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 82% 28%, rgba(217,249,157,0.18), transparent 34%),
    linear-gradient(180deg, rgba(217,249,157,0.08), rgba(255,255,255,0.02));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.quick-stats div:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(217,249,157,0.40);
  background: rgba(217,249,157,0.08);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.24),
    0 0 0 1px rgba(217,249,157,0.10),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.quick-stats div:hover::before {
  opacity: 1;
}

.quick-stats div:hover strong {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(217,249,157,0.28);
}

.quick-stats div:hover span {
  color: var(--text);
}

/* Recognition section animations */
.recommendation-section {
  position: relative;
  overflow: visible;
}

.recommendation-section .section-heading {
  animation: recognitionHeadingIn 0.8s ease both;
}

.recommendation-section .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.recommendation-section .eyebrow::after {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
  box-shadow: 0 0 18px rgba(217,249,157,0.35);
  animation: recognitionLinePulse 1.8s ease-in-out infinite;
}

.recommendation-grid {
  perspective: 1000px;
}

.recommendation-card {
  position: relative;
  overflow: hidden;
  transform: translateY(18px) rotateX(4deg);
  opacity: 0;
  animation: recommendationCardIn 0.8s ease forwards;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.recommendation-card:nth-child(1) {
  animation-delay: 0.12s;
}

.recommendation-card:nth-child(2) {
  animation-delay: 0.26s;
}

.recommendation-card::after {
  content: "";
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,0.18),
    transparent 65%
  );
  transform: translateX(-70%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.recommendation-card:hover {
  transform: translateY(-8px) rotateX(0deg) scale(1.015);
  border-color: rgba(217,249,157,0.36);
  background:
    radial-gradient(circle at 82% 10%, rgba(217,249,157,0.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow:
    0 28px 80px rgba(0,0,0,0.28),
    0 0 0 1px rgba(217,249,157,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.recommendation-card:hover::after {
  opacity: 1;
  animation: recommendationShine 0.85s ease;
}

.recommendation-card::before {
  animation: quoteFloat 3.2s ease-in-out infinite;
}

.recommendation-type {
  position: relative;
  overflow: hidden;
}

.recommendation-type::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(217,249,157,0.18), transparent);
  transform: translateX(-110%);
  animation: badgeSweep 2.8s ease-in-out infinite;
}

.recommendation-card p {
  transition: color 0.25s ease, transform 0.25s ease;
}

.recommendation-card:hover p {
  color: var(--text);
  transform: translateY(-2px);
}

.recommendation-card strong {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.recommendation-card:hover strong {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(217,249,157,0.28);
}

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

@keyframes recognitionLinePulse {
  0%, 100% {
    opacity: 0.45;
    transform: scaleX(0.82);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes recommendationCardIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes recommendationShine {
  0% {
    transform: translateX(-70%) rotate(8deg);
  }
  100% {
    transform: translateX(70%) rotate(8deg);
  }
}

@keyframes quoteFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: translateY(8px) rotate(2deg);
    opacity: 1;
  }
}

@keyframes badgeSweep {
  0%, 65% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .recommendation-section .section-heading,
  .recommendation-card,
  .recommendation-card::before,
  .recommendation-card::after,
  .recommendation-type::after,
  .recommendation-section .eyebrow::after {
    animation: none !important;
    transition: none !important;
  }

  .recommendation-card {
    opacity: 1;
    transform: none;
  }
}

/* Floating interactive icons for Education + Recognition */
.education-section,
.recommendation-section {
  position: relative;
  overflow: visible;
}

.section-floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.education-section > *,
.recommendation-section > * {
  position: relative;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  display: inline-grid;
  place-items: center;
  color: var(--accent-2);
  border: 2px solid rgba(217,249,157,0.42);
  background:
    radial-gradient(circle at 35% 25%, rgba(217,249,157,0.18), transparent 45%),
    rgba(255,255,255,0.035);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.22),
    0 0 24px rgba(217,249,157,0.10),
    inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  opacity: 0.78;
  animation: floatingIconDrift 4.8s ease-in-out infinite;
}

/* Education icons */
.edu-icon-book {
  right: 10%;
  top: 8%;
  width: 72px;
  height: 46px;
  border-radius: 16px;
  color: var(--accent);
  animation-delay: -0.8s;
}

.edu-icon-cap {
  right: 2%;
  top: 38%;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  font-size: 2.1rem;
  animation-delay: -2.2s;
}

.edu-icon-code {
  left: 44%;
  bottom: 4%;
  min-width: 82px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
  animation-delay: -1.5s;
}

/* Recognition icons */
.rec-icon-star {
  right: 6%;
  top: 4%;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  font-size: 2rem;
  animation-delay: -0.6s;
}

.rec-icon-quote {
  right: 18%;
  top: 32%;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(217,249,157,0.75);
  animation-delay: -2s;
}

.rec-icon-check {
  left: 58%;
  bottom: 2%;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  font-size: 2.4rem;
  animation-delay: -3s;
}

/* Card hover motion to match Certifications feel */
.education-feature,
.recommendation-card {
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.education-feature:hover,
.recommendation-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(217,249,157,0.36);
  background:
    radial-gradient(circle at 82% 10%, rgba(217,249,157,0.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow:
    0 28px 80px rgba(0,0,0,0.28),
    0 0 0 1px rgba(217,249,157,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Small shine sweep on cards */
.education-feature::after,
.recommendation-card::after {
  content: "";
  position: absolute;
  inset: -45% -90%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,0.16),
    transparent 65%
  );
  transform: translateX(-72%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.education-feature:hover::after,
.recommendation-card:hover::after {
  opacity: 1;
  animation: sectionCardShine 0.85s ease;
}

/* Make chips/logos feel alive */
.education-feature:hover .school-mark,
.recommendation-card:hover .recommendation-type {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 24px rgba(217,249,157,0.12);
}

.education-feature .school-mark,
.recommendation-card .recommendation-type {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

/* Floating animation */
@keyframes floatingIconDrift {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-12px) rotate(3deg);
  }
  70% {
    transform: translateY(8px) rotate(-3deg);
  }
}

@keyframes sectionCardShine {
  0% {
    transform: translateX(-72%) rotate(8deg);
  }
  100% {
    transform: translateX(72%) rotate(8deg);
  }
}

@media (max-width: 760px) {
  .section-floating-icons {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-icon,
  .education-feature,
  .recommendation-card,
  .education-feature::after,
  .recommendation-card::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Meaning-based heading stickers for Education + Recognition */
.education-title,
.recognition-title {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.16em;
  overflow: visible;
}

.edu-title-word,
.rec-title-word {
  position: relative;
  display: inline-block;
}

.background-word {
  color: var(--accent);
}

.appreciation-word {
  color: var(--accent-2);
}

/* Shared sticker style */
.edu-sticker,
.rec-sticker {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-2);
  border: 2px solid rgba(217,249,157,0.42);
  background:
    radial-gradient(circle at 35% 25%, rgba(217,249,157,0.16), transparent 45%),
    rgba(255,255,255,0.035);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.22),
    0 0 22px rgba(217,249,157,0.10),
    inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transform-origin: center;
}

/* Education: book stack beside Academic */
.edu-book {
  width: 0.72em;
  height: 0.72em;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0 0.06em 0.16em -0.03em;
  animation: eduBookFloat 2.4s ease-in-out infinite;
}

.edu-book i {
  position: absolute;
  width: 0.34em;
  height: 0.12em;
  border-radius: 0.04em;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(217,249,157,0.30);
}

.edu-book i:nth-child(1) {
  transform: translate(-0.08em, -0.16em) rotate(-8deg);
  background: var(--accent);
}

.edu-book i:nth-child(2) {
  transform: translate(0.03em, 0) rotate(5deg);
}

.edu-book i:nth-child(3) {
  transform: translate(-0.04em, 0.16em) rotate(-4deg);
  background: rgba(255,255,255,0.86);
}

/* Education: degree cap/orbit beside background */
.edu-cap {
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.06em;
  margin-bottom: 0.06em;
  border-radius: 999px;
  font-size: 0.56em;
  animation: eduCapOrbit 3s ease-in-out infinite;
}

/* Education: code chip */
.edu-code {
  min-width: 2.55em;
  height: 1.05em;
  padding: 0 0.5em;
  margin-left: 0.08em;
  margin-bottom: 0.04em;
  border-radius: 999px;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.3em;
  font-weight: 900;
  animation: eduCodeBlink 2s ease-in-out infinite;
}

/* Recognition: quote belongs to Recommendations */
.rec-quote {
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.04em;
  margin-bottom: 0.08em;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(217,249,157,0.34);
  font-size: 1.18em;
  line-height: 0.7;
  animation: recQuoteFloat 3s ease-in-out infinite;
}

/* Recognition: envelope belongs to letters */
.rec-letter {
  width: 1.05em;
  height: 0.74em;
  margin-left: 0.05em;
  margin-bottom: 0.16em;
  border-radius: 0.2em;
  color: var(--accent);
  font-size: 0.38em;
  animation: recLetterSend 2.6s ease-in-out infinite;
}

/* Recognition: check belongs to appreciation */
.rec-check {
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.06em;
  margin-bottom: 0.04em;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.54em;
  animation: recCheckPulse 1.9s ease-in-out infinite;
}

/* Underline accent under important words */
.background-word::after,
.appreciation-word::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.08em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.46;
  animation: headingUnderlinePulse 2.4s ease-in-out infinite;
}

@keyframes eduBookFloat {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-0.16em) rotate(5deg);
  }
}

@keyframes eduCapOrbit {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-0.12em) rotate(10deg);
  }
}

@keyframes eduCodeBlink {
  0%, 100% {
    opacity: 0.72;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.08em);
  }
}

@keyframes recQuoteFloat {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-0.16em) rotate(4deg);
    opacity: 0.72;
  }
}

@keyframes recLetterSend {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  45% {
    transform: translateX(0.16em) translateY(-0.08em) rotate(-8deg);
  }
  70% {
    transform: translateX(-0.05em) rotate(4deg);
  }
}

@keyframes recCheckPulse {
  0%, 100% {
    transform: scale(0.96);
    box-shadow:
      0 14px 36px rgba(0,0,0,0.22),
      0 0 18px rgba(217,249,157,0.10);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 18px 44px rgba(0,0,0,0.26),
      0 0 28px rgba(217,249,157,0.24);
  }
}

@keyframes headingUnderlinePulse {
  0%, 100% {
    transform: scaleX(0.42);
    opacity: 0.34;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  .edu-sticker,
  .rec-sticker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-sticker,
  .rec-sticker,
  .background-word::after,
  .appreciation-word::after {
    animation: none !important;
  }
}

/* Cleaner Education heading stickers: close to text, education-themed */
.education-title {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.14em;
  overflow: visible;
}

.education-title .edu-title-word {
  position: relative;
  display: inline-block;
}

.education-title .background-word {
  color: var(--accent);
}

.education-title .background-word::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.08em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
  animation: educationUnderlinePulse 2.4s ease-in-out infinite;
}

/* Shared inline sticker base */
.education-title .edu-sticker {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transform-origin: center;
}

/* Small stack of books beside Academic */
.education-title .edu-books {
  width: 0.64em;
  height: 0.58em;
  margin: 0 0.04em 0.13em 0.02em;
  animation: eduBooksBob 2.4s ease-in-out infinite;
}

.education-title .edu-books i {
  position: absolute;
  width: 0.34em;
  height: 0.11em;
  border-radius: 0.035em;
  box-shadow: 0 0 10px rgba(217,249,157,0.22);
}

.education-title .edu-books i:nth-child(1) {
  background: var(--accent);
  transform: translate(-0.04em, -0.15em) rotate(-5deg);
}

.education-title .edu-books i:nth-child(2) {
  background: var(--accent-2);
  transform: translate(0.05em, 0) rotate(4deg);
}

.education-title .edu-books i:nth-child(3) {
  background: rgba(238,244,255,0.88);
  transform: translate(-0.02em, 0.15em) rotate(-3deg);
}

/* Pencil beside background */
.education-title .edu-pencil {
  width: 0.84em;
  height: 0.18em;
  margin: 0 0.02em 0.21em 0.08em;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #d9f99d 0 18%,
    #8cc8ff 18% 78%,
    rgba(238,244,255,0.92) 78% 100%
  );
  box-shadow: 0 0 16px rgba(140,200,255,0.24);
  transform: rotate(-10deg);
  animation: eduPencilWrite 2.8s ease-in-out infinite;
}

.education-title .edu-pencil::after {
  content: "";
  position: absolute;
  right: -0.11em;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 0.14em solid rgba(238,244,255,0.92);
  border-top: 0.08em solid transparent;
  border-bottom: 0.08em solid transparent;
}

/* Small cap-like badge, close to title */
.education-title .edu-cap {
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.02em;
  margin-bottom: 0.05em;
  border-radius: 999px;
  border: 2px solid rgba(217,249,157,0.36);
  background:
    radial-gradient(circle at 34% 28%, rgba(217,249,157,0.16), transparent 42%),
    rgba(255,255,255,0.035);
  color: var(--accent-2);
  font-size: 0.42em;
  font-weight: 900;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.22),
    0 0 18px rgba(217,249,157,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10);
  animation: eduCapNod 3s ease-in-out infinite;
}

/* Kill old far-floating icon system if it exists */
.education-floating-icons,
.recognition-floating-icons,
.section-floating-icons {
  display: none !important;
}

@keyframes eduBooksBob {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-0.12em) rotate(4deg);
  }
}

@keyframes eduPencilWrite {
  0%, 100% {
    transform: translateX(0) rotate(-10deg);
  }
  45% {
    transform: translateX(0.12em) translateY(-0.03em) rotate(-6deg);
  }
  70% {
    transform: translateX(-0.04em) rotate(-12deg);
  }
}

@keyframes eduCapNod {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-0.1em) rotate(8deg);
  }
}

@keyframes educationUnderlinePulse {
  0%, 100% {
    transform: scaleX(0.45);
    opacity: 0.32;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  .education-title .edu-sticker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .education-title .edu-sticker,
  .education-title .background-word::after {
    animation: none !important;
  }
}

/* Cleaner Recognition heading stickers: close to text and meaning-based */
.recognition-title {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.14em;
  overflow: visible;
}

.recognition-title .rec-title-word,
.recognition-title .rec-title-amp {
  position: relative;
  display: inline-block;
}

.recognition-title .appreciation-word {
  color: var(--accent-2);
}

.recognition-title .appreciation-word::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.08em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
  opacity: 0.5;
  animation: recognitionUnderlinePulse 2.4s ease-in-out infinite;
}

/* Shared inline sticker base */
.recognition-title .rec-sticker {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transform-origin: center;
}

/* Quote attached to Recommendations */
.recognition-title .rec-quote {
  width: 0.74em;
  height: 0.58em;
  margin: 0 0.03em 0.2em 0.02em;
  color: rgba(217,249,157,0.38);
  font-size: 0.96em;
  line-height: 0.7;
  font-weight: 900;
  animation: recQuoteBob 2.7s ease-in-out infinite;
}

/* Envelope attached to letters */
.recognition-title .rec-envelope {
  width: 0.9em;
  height: 0.58em;
  margin: 0 0.03em 0.22em 0.04em;
  border-radius: 0.14em;
  border: 2px solid rgba(140,200,255,0.62);
  background:
    linear-gradient(135deg, transparent 46%, rgba(140,200,255,0.48) 47% 53%, transparent 54%),
    linear-gradient(45deg, transparent 46%, rgba(140,200,255,0.32) 47% 53%, transparent 54%),
    rgba(140,200,255,0.055);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.22),
    0 0 18px rgba(140,200,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.10);
  animation: recEnvelopeSend 2.8s ease-in-out infinite;
}

/* Check attached to appreciation */
.recognition-title .rec-check {
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.03em;
  margin-bottom: 0.08em;
  border-radius: 999px;
  border: 2px solid rgba(217,249,157,0.38);
  background:
    radial-gradient(circle at 35% 28%, rgba(217,249,157,0.18), transparent 44%),
    rgba(255,255,255,0.035);
  color: var(--accent-2);
  font-size: 0.44em;
  font-weight: 900;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.22),
    0 0 18px rgba(217,249,157,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10);
  animation: recCheckPulseClean 1.9s ease-in-out infinite;
}

/* Kill old random/far floating recognition icons if they exist */
.recognition-floating-icons,
.section-floating-icons {
  display: none !important;
}

/* Optional: remove previous oversized old quote if CSS created it */
.recommendation-card::before {
  animation: quoteFloat 3.2s ease-in-out infinite;
}

@keyframes recQuoteBob {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-0.12em) rotate(4deg);
    opacity: 0.8;
  }
}

@keyframes recEnvelopeSend {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  45% {
    transform: translateX(0.12em) translateY(-0.06em) rotate(-7deg);
  }
  70% {
    transform: translateX(-0.04em) rotate(4deg);
  }
}

@keyframes recCheckPulseClean {
  0%, 100% {
    transform: scale(0.96);
    box-shadow:
      0 12px 28px rgba(0,0,0,0.22),
      0 0 16px rgba(217,249,157,0.10);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 16px 36px rgba(0,0,0,0.25),
      0 0 26px rgba(217,249,157,0.24);
  }
}

@keyframes recognitionUnderlinePulse {
  0%, 100% {
    transform: scaleX(0.45);
    opacity: 0.32;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  .recognition-title .rec-sticker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recognition-title .rec-sticker,
  .recognition-title .appreciation-word::after {
    animation: none !important;
  }
}

/* Project recent badge - bottom right, real HTML badge */
.project-card-lab {
  position: relative;
  overflow: hidden;
}

.project-status-badge {
  position: absolute !important;
  top: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 20;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(217, 249, 157, 0.10);
  border: 1px solid rgba(217, 249, 157, 0.30);
  color: var(--accent-2);

  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);

  cursor: help;
}

.project-card-lab:not(.project-new) .project-status-badge {
  display: none;
}

.project-status-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);

  width: max-content;
  min-width: 50px;
  max-width: 260px;

  white-space: normal;
  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(217,249,157,0.28);
  color: var(--text);

  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;

  box-shadow:
    0 16px 38px rgba(0,0,0,0.32),
    0 0 18px rgba(217,249,157,0.10);

  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.project-status-tooltip::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -5px;

  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.96);
  border-right: 1px solid rgba(217,249,157,0.28);
  border-bottom: 1px solid rgba(217,249,157,0.28);
  transform: rotate(45deg);
}

.project-status-badge:hover {
  background: rgba(217,249,157,0.16);
  border-color: rgba(217,249,157,0.46);
  color: #ecfccb;
}

.project-status-badge:hover .project-status-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-links {
  gap: clamp(14px, 1.6vw, 24px);
}

.nav-links a {
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 14px;
    font-size: 0.92rem;
  }

  .nav-cta {
    padding: 9px 13px;
  }
}

/* Fix empty space when project filters hide categories */
.project-category.project-category-hidden {
  display: none !important;
}

/* Make the remaining visible category move up immediately */
.projects-lab-grid,
.project-sections {
  align-items: start;
  gap: 28px;
}

/* Remove separators from hidden/filtered categories */
.project-category.project-category-hidden::before,
.project-category.project-category-hidden::after {
  display: none !important;
}

/* Prevent filtered-out cards from leaving vertical space */
.project-card-lab.project-card-filtered-out {
  display: none !important;
}

.repo-updated {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(140, 200, 255, 0.08);
  border: 1px solid rgba(140, 200, 255, 0.18);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}

.visit-counter {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.visit-counter span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.visit-counter-img {
  display: block;
  max-width: 100%;
  height: 22px;
}