/**
 * Modern UI layer — typography, motion, depth (loads after style.css)
 */

:root {
  --v2-accent: #22d3ee;
  --v2-accent-deep: #06b6d4;
  --v2-accent-soft: rgba(34, 211, 238, 0.15);
  --v2-ink: #0b1220;
  --v2-ink-muted: #475569;
  --v2-surface: #ffffff;
  --v2-surface-2: #f1f5f9;
  --v2-sidebar: #070b14;
  --v2-sidebar-2: #0f172a;
  --v2-glow: 0 0 40px rgba(34, 211, 238, 0.25);
  --v2-radius: 14px;
  --v2-radius-sm: 10px;
  --v2-font-sans: "DM Sans", system-ui, sans-serif;
  --v2-font-display: "Outfit", system-ui, sans-serif;
  --v2-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.08);
}

body.theme-v2 .scroll-progress {
  background: rgba(7, 11, 20, 0.35);
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--v2-accent), var(--v2-accent-deep));
  transition: width 0.12s linear;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

body.theme-v2 {
  font-family: var(--v2-font-sans);
  color: var(--v2-ink);
  background: var(--v2-surface-2);
}

body.theme-v2 h1,
body.theme-v2 h2,
body.theme-v2 h3,
body.theme-v2 h4,
body.theme-v2 h5,
body.theme-v2 h6 {
  font-family: var(--v2-font-display);
  letter-spacing: -0.02em;
}

body.theme-v2 a {
  color: var(--v2-accent-deep);
}

body.theme-v2 a:hover {
  color: var(--v2-accent);
}

body.theme-v2 :focus-visible {
  outline: 3px solid var(--v2-accent);
  outline-offset: 2px;
}

/* ----- Sidebar ----- */
body.theme-v2 #header {
  background: linear-gradient(165deg, var(--v2-sidebar) 0%, var(--v2-sidebar-2) 55%, #0c1a2e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

/* ----- Sidebar profile ----- */
body.theme-v2 #header .sidebar-profile {
  text-align: center;
  padding: 0.5rem 0 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-v2 #header .profile-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--v2-accent), rgba(129, 140, 248, 0.85), var(--v2-accent-deep));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.theme-v2 #header .profile-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.2);
  pointer-events: none;
}

body.theme-v2 #header .profile-avatar {
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid rgba(7, 11, 20, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.45s var(--v2-ease-out), box-shadow 0.45s;
}

body.theme-v2 #header .profile-avatar-wrap:hover .profile-avatar {
  transform: scale(1.03);
}

/* Profile avatar flip → LinkedIn QR */
body.theme-v2 #header .profile-avatar-flip {
  display: block;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

body.theme-v2 #header .profile-avatar-flip:focus-visible {
  outline: 2px solid var(--v2-accent);
  outline-offset: 4px;
}

body.theme-v2 #header .profile-avatar-flip__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--v2-ease-out);
}

body.theme-v2 #header .profile-avatar-flip.is-flipped .profile-avatar-flip__inner {
  transform: rotateY(180deg);
}

body.theme-v2 #header .profile-avatar-flip__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.theme-v2 #header .profile-avatar-flip__face--back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #fff;
  border: 3px solid rgba(7, 11, 20, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.theme-v2 #header .profile-avatar-qr {
  width: 78%;
  height: auto;
  display: block;
  border-radius: 4px;
}

body.theme-v2 #header .profile-avatar-flip__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0a66c2;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

body.theme-v2 #header .profile-avatar-flip__label .bx {
  font-size: 0.85rem;
}

body.theme-v2 #header .profile-avatar-flip:hover .profile-avatar-flip__face--front .profile-avatar {
  transform: scale(1.03);
}

body.theme-v2 #header .profile-avatar-flip.is-flipped:hover .profile-avatar-flip__face--front .profile-avatar {
  transform: none;
}

body.theme-v2 #header .profile-name {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-family: var(--v2-font-display), "Poppins", sans-serif;
}

body.theme-v2 #header .profile-name a,
body.theme-v2 #header .profile-name a:hover {
  color: #f8fafc;
  text-decoration: none;
}

body.theme-v2 #header .profile-name a:hover {
  color: var(--v2-accent);
}

body.theme-v2 #header .profile-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.88);
  font-family: var(--v2-font-sans), sans-serif;
}

body.theme-v2 #header .profile-location {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.65);
  font-family: var(--v2-font-sans), sans-serif;
}

body.theme-v2 #header .profile-location i {
  color: var(--v2-accent);
  font-size: 0.9rem;
}

body.theme-v2 #header .profile .social-links.profile-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem !important;
}

body.theme-v2 #header .profile .social-links.profile-social a {
  margin-right: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.theme-v2 #header .profile .social-links a {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--v2-ease-out), background 0.25s, box-shadow 0.25s;
}

body.theme-v2 #header .profile .social-links a:hover {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}

body.theme-v2 .nav-menu a,
body.theme-v2 .nav-menu a:focus {
  border-radius: var(--v2-radius-sm);
  margin-bottom: 4px;
  padding: 9px 12px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

body.theme-v2 .nav-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--v2-accent), var(--v2-accent-deep));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--v2-ease-out);
  border-radius: 0 4px 4px 0;
}

body.theme-v2 .nav-menu .active::before,
body.theme-v2 .nav-menu a:hover::before {
  transform: scaleY(1);
}

body.theme-v2 .nav-menu a:hover,
body.theme-v2 .nav-menu .active,
body.theme-v2 .nav-menu li:hover > a {
  background: rgba(255, 255, 255, 0.05);
}

body.theme-v2 .nav-menu a:hover i,
body.theme-v2 .nav-menu .active i,
body.theme-v2 .nav-menu li:hover > a i {
  color: var(--v2-accent);
}

body.theme-v2 .mobile-nav-toggle {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

/* ----- Hero ----- */
body.theme-v2 #hero {
  position: relative;
  overflow: hidden;
  background: var(--v2-sidebar);
  background-image: none;
}

body.theme-v2 #hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(34, 211, 238, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(6, 182, 212, 0.12), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0f172a 50%, #0b1220 100%);
}

body.theme-v2 #hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

body.theme-v2 #hero .hero-network-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}

body.theme-v2 #hero::before {
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.2) 0%, rgba(7, 11, 20, 0.75) 100%);
}

body.theme-v2 #hero .hero-skills-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 8%, black 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 8%, black 72%);
}

/* ----- Hero DevOps code typewriter panels ----- */
body.theme-v2 #hero .hero-code-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, var(--hero-panel-w)) minmax(0, 1fr) minmax(0, var(--hero-panel-w));
  align-items: stretch;
  padding:
    clamp(4.25rem, 11vh, 5.5rem)
    clamp(0.5rem, 1.2vw, 1rem)
    clamp(3rem, 8vh, 4.5rem);
  --hero-panel-w: min(15.5rem, 22vw);
  --hero-panel-gap: 0.5rem;
}

body.theme-v2 #hero .hero-code-bg__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--hero-panel-gap);
  min-height: 0;
  min-width: 0;
  max-height: 100%;
}

body.theme-v2 #hero .hero-code-bg__col--left {
  grid-column: 1;
  align-self: stretch;
}

body.theme-v2 #hero .hero-code-bg__col--right {
  grid-column: 3;
  align-self: stretch;
}

body.theme-v2 #hero .hero-devops-toasts {
  grid-column: 1 / -1;
  grid-row: 1;
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.theme-v2 #hero .hero-code-panel {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(10px);
  box-shadow:
    0 12px 40px rgba(7, 11, 20, 0.55),
    0 0 0 1px rgba(99, 102, 241, 0.06) inset;
  opacity: 0.88;
  transform: rotate(var(--panel-rot, -2deg));
  transition: opacity 0.4s ease, transform 0.4s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-code-panel--ops {
  --panel-rot: -1.5deg;
  flex: 1 1 0;
  max-height: 38%;
}

body.theme-v2 #hero .hero-ops-feed {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.4rem 0.5rem 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.25) transparent;
}

body.theme-v2 #hero .hero-ops-block {
  padding: 0.28rem 0.38rem 0.32rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.08);
  flex-shrink: 0;
}

body.theme-v2 #hero .hero-ops-block--health .hero-ops-health {
  max-height: 3.6rem;
  overflow: hidden;
}

body.theme-v2 #hero .hero-ops-block--pagerduty.is-firing {
  border-color: rgba(248, 113, 113, 0.35);
  animation: hero-ops-pd-flash 2s ease-in-out infinite;
}

body.theme-v2 #hero .hero-ops-block__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  font-family: var(--v2-font-sans);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.55);
}

body.theme-v2 #hero .hero-ops-block__icon {
  display: inline-flex;
  color: rgba(234, 67, 53, 0.85);
  font-size: 0.65rem;
}

body.theme-v2 #hero .hero-ops-block__icon--pd {
  color: rgba(6, 182, 212, 0.9);
}

body.theme-v2 #hero .hero-ops-block__icon--health {
  color: rgba(52, 211, 153, 0.9);
}

body.theme-v2 #hero .hero-ops-block__title {
  flex: 1;
}

body.theme-v2 #hero .hero-ops-block__badge {
  min-width: 1.1rem;
  padding: 0.1em 0.35em;
  border-radius: 999px;
  background: rgba(234, 67, 53, 0.2);
  border: 1px solid rgba(234, 67, 53, 0.4);
  color: rgba(252, 165, 165, 0.95);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.5rem;
  text-align: center;
  transition: transform 0.25s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-ops-block__badge.is-bump {
  animation: hero-ops-badge-bump 0.45s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-ops-block__status {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.7);
}

body.theme-v2 #hero .hero-ops-block__status--ok {
  color: rgba(52, 211, 153, 0.9);
}

body.theme-v2 #hero .hero-ops-block__status--warn {
  color: rgba(251, 191, 36, 0.95);
}

body.theme-v2 #hero .hero-ops-block__status--crit {
  color: rgba(248, 113, 113, 0.95);
  animation: hero-ops-pd-flash 1.2s ease-in-out infinite;
}

body.theme-v2 #hero .hero-ops-list,
body.theme-v2 #hero .hero-ops-alerts,
body.theme-v2 #hero .hero-ops-health {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

body.theme-v2 #hero .hero-ops-list__item,
body.theme-v2 #hero .hero-ops-alerts__item {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.54rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.68);
  padding: 0.2em 0.35em;
  border-radius: 4px;
  border-left: 2px solid rgba(34, 211, 238, 0.25);
  background: rgba(7, 11, 20, 0.35);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.35s var(--v2-ease-out),
    transform 0.35s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-ops-list__item.is-visible,
body.theme-v2 #hero .hero-ops-alerts__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

body.theme-v2 #hero .hero-ops-list__item.is-exit {
  opacity: 0;
  transform: translateX(6px);
}

body.theme-v2 #hero .hero-ops-list__item--unread {
  border-left-color: rgba(234, 67, 53, 0.65);
  color: rgba(226, 232, 240, 0.85);
}

body.theme-v2 #hero .hero-ops-alerts__item {
  border-left-width: 3px;
}

body.theme-v2 #hero .hero-ops-alerts__item--p1 {
  border-left-color: rgba(248, 113, 113, 0.9);
  color: rgba(254, 202, 202, 0.92);
  background: rgba(248, 113, 113, 0.08);
}

body.theme-v2 #hero .hero-ops-alerts__item--p2 {
  border-left-color: rgba(251, 191, 36, 0.85);
  color: rgba(253, 230, 138, 0.9);
}

body.theme-v2 #hero .hero-ops-alerts__item--resolved {
  border-left-color: rgba(52, 211, 153, 0.5);
  color: rgba(148, 163, 184, 0.55);
  text-decoration: line-through;
  opacity: 0.65;
}

body.theme-v2 #hero .hero-ops-alerts__item--ack {
  animation: hero-ops-ack 0.6s ease;
}

body.theme-v2 #hero .hero-ops-health__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.52rem;
  padding: 0.15em 0.2em;
  color: rgba(226, 232, 240, 0.62);
}

body.theme-v2 #hero .hero-ops-health__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-v2 #hero .hero-ops-health__state {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.theme-v2 #hero .hero-ops-health__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.theme-v2 #hero .hero-ops-health__item--ok .hero-ops-health__dot {
  background: rgba(52, 211, 153, 0.9);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

body.theme-v2 #hero .hero-ops-health__item--warn .hero-ops-health__dot {
  background: rgba(251, 191, 36, 0.9);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.45);
  animation: hero-monitor-pulse 1.8s ease-in-out infinite;
}

body.theme-v2 #hero .hero-ops-health__item--fail .hero-ops-health__dot {
  background: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.55);
  animation: hero-monitor-pulse 1s ease-in-out infinite;
}

body.theme-v2 #hero .hero-ops-health__item--ok .hero-ops-health__state {
  color: rgba(52, 211, 153, 0.88);
}

body.theme-v2 #hero .hero-ops-health__item--warn .hero-ops-health__state {
  color: rgba(251, 191, 36, 0.9);
}

body.theme-v2 #hero .hero-ops-health__item--fail .hero-ops-health__state {
  color: rgba(248, 113, 113, 0.92);
}

body.theme-v2 #hero .hero-ops-health__item.is-scanning .hero-ops-health__state::after {
  content: " …";
  opacity: 0.6;
}

@keyframes hero-ops-pd-flash {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(248, 113, 113, 0);
  }
  50% {
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.2);
  }
}

@keyframes hero-ops-badge-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hero-ops-ack {
  0% {
    background: rgba(52, 211, 153, 0.25);
  }
  100% {
    background: rgba(7, 11, 20, 0.35);
  }
}

body.theme-v2 #hero .hero-code-panel--pipeline {
  --panel-rot: -2deg;
  flex: 0 0 auto;
  max-height: 30%;
  overflow: hidden;
}

body.theme-v2 #hero .hero-code-panel--pipeline .hero-pipeline__log {
  max-height: 3.25rem;
}

body.theme-v2 #hero .hero-code-panel--pipeline.is-fail {
  border-color: rgba(248, 113, 113, 0.28);
  animation: hero-pipeline-fail-glow 2.5s ease-in-out infinite;
}

body.theme-v2 #hero .hero-code-panel--pipeline.is-ok {
  border-color: rgba(52, 211, 153, 0.22);
}

body.theme-v2 #hero .hero-pipeline__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.06);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.theme-v2 #hero .hero-pipeline__provider {
  color: rgba(165, 243, 252, 0.5);
}

body.theme-v2 #hero .hero-pipeline__summary--fail {
  color: rgba(248, 113, 113, 0.95);
  font-weight: 700;
}

body.theme-v2 #hero .hero-pipeline__summary--ok {
  color: rgba(52, 211, 153, 0.92);
  font-weight: 700;
}

body.theme-v2 #hero .hero-pipeline__summary--run {
  color: rgba(251, 191, 36, 0.92);
}

body.theme-v2 #hero .hero-pipeline__jobs {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.55rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.theme-v2 #hero .hero-pipeline__job {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.54rem;
  padding: 0.18em 0.3em;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s var(--v2-ease-out),
    transform 0.3s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-pipeline__job.is-visible {
  opacity: 1;
  transform: translateX(0);
}

body.theme-v2 #hero .hero-pipeline__job--ok {
  color: rgba(52, 211, 153, 0.85);
}

body.theme-v2 #hero .hero-pipeline__job--fail {
  color: rgba(254, 202, 202, 0.92);
  background: rgba(248, 113, 113, 0.08);
}

body.theme-v2 #hero .hero-pipeline__job--skip {
  color: rgba(148, 163, 184, 0.4);
}

body.theme-v2 #hero .hero-pipeline__job--run.is-running .hero-pipeline__job-icon {
  animation: hero-pipeline-spin 1s linear infinite;
}

body.theme-v2 #hero .hero-pipeline__job-icon {
  width: 0.85rem;
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
}

body.theme-v2 #hero .hero-pipeline__job-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(226, 232, 240, 0.7);
}

body.theme-v2 #hero .hero-pipeline__job-time {
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.5rem;
}

body.theme-v2 #hero .hero-pipeline__log {
  margin: 0;
  padding: 0.4rem 0.55rem 0.55rem;
  max-height: 5.5rem;
  overflow: hidden;
  border-top: 1px solid rgba(248, 113, 113, 0.12);
  background: rgba(7, 11, 20, 0.5);
}

body.theme-v2 #hero .hero-code-panel--pipeline.is-ok .hero-pipeline__log {
  border-top-color: rgba(52, 211, 153, 0.12);
}

body.theme-v2 #hero .hero-pipeline__log code {
  display: block;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.5rem;
  line-height: 1.4;
  color: rgba(248, 113, 113, 0.75);
  white-space: pre-wrap;
  word-break: break-word;
}

body.theme-v2 #hero .hero-code-panel--pipeline.is-ok .hero-pipeline__log code {
  color: rgba(52, 211, 153, 0.8);
}

body.theme-v2 #hero .hero-code-panel--pipeline.is-typing-log .hero-pipeline__log code::after {
  content: "▋";
  color: rgba(248, 113, 113, 0.9);
  animation: hero-code-cursor 0.75s step-end infinite;
}

body.theme-v2 #hero .hero-devops-toast {
  position: absolute;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: min(16rem, 38vw);
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(7, 11, 20, 0.5);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.52rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.82);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.4s var(--v2-ease-out),
    transform 0.4s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-devops-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.theme-v2 #hero .hero-devops-toast.is-exit {
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
}

body.theme-v2 #hero .hero-devops-toast i {
  flex-shrink: 0;
  font-size: 0.72rem;
  margin-top: 0.05em;
}

body.theme-v2 #hero .hero-devops-toast--fail {
  border-color: rgba(248, 113, 113, 0.35);
  color: rgba(254, 202, 202, 0.92);
}

body.theme-v2 #hero .hero-devops-toast--fail i {
  color: rgba(248, 113, 113, 0.95);
}

body.theme-v2 #hero .hero-devops-toast--warn {
  border-color: rgba(251, 191, 36, 0.3);
  color: rgba(253, 230, 138, 0.9);
}

body.theme-v2 #hero .hero-devops-toast--warn i {
  color: rgba(251, 191, 36, 0.95);
}

body.theme-v2 #hero .hero-devops-toast--ok {
  border-color: rgba(52, 211, 153, 0.3);
  color: rgba(167, 243, 208, 0.9);
}

body.theme-v2 #hero .hero-devops-toast--ok i {
  color: rgba(52, 211, 153, 0.95);
}

body.theme-v2 #hero .hero-devops-toast--tl {
  top: 20%;
  left: max(22rem, 32%);
}

body.theme-v2 #hero .hero-devops-toast--tr {
  top: 22%;
  right: 26%;
}

body.theme-v2 #hero .hero-devops-toast--bl {
  bottom: 28%;
  left: max(22rem, 32%);
}

body.theme-v2 #hero .hero-devops-toast--br {
  bottom: 32%;
  right: 28%;
}

body.theme-v2 #hero .hero-devops-toast--tc {
  top: 14%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
}

body.theme-v2 #hero .hero-devops-toast--tc.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
}

body.theme-v2 #hero .hero-devops-toast--bc {
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
}

body.theme-v2 #hero .hero-devops-toast--bc.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
}

@keyframes hero-pipeline-fail-glow {
  0%,
  100% {
    box-shadow: 0 12px 40px rgba(7, 11, 20, 0.55);
  }
  50% {
    box-shadow:
      0 12px 40px rgba(7, 11, 20, 0.55),
      0 0 20px rgba(248, 113, 113, 0.12);
  }
}

@keyframes hero-pipeline-spin {
  to {
    transform: rotate(360deg);
  }
}

body.theme-v2 #hero .hero-code-panel--configs {
  --panel-rot: -2.5deg;
  flex: 1 1 0;
  max-height: 36%;
}

body.theme-v2 #hero .hero-code-panel--configs .hero-code-panel__pre {
  flex: 1 1 auto;
  min-height: 4rem;
  max-height: none;
  overflow: hidden;
}

body.theme-v2 #hero .hero-code-panel--cli {
  --panel-rot: 2deg;
  flex: 0 1 auto;
  max-height: 42%;
}

body.theme-v2 #hero .hero-code-panel--cli .hero-code-panel__pre {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 8rem;
  overflow: hidden;
}

body.theme-v2 #hero .hero-code-panel--monitor {
  --panel-rot: 1.5deg;
  flex: 1 1 0;
  max-height: 48%;
}

body.theme-v2 #hero .hero-monitor__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.06);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.55);
}

body.theme-v2 #hero .hero-monitor__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(52, 211, 153, 0.85);
  font-weight: 600;
}

body.theme-v2 #hero .hero-monitor__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.9);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
  animation: hero-monitor-pulse 1.6s ease-in-out infinite;
}

body.theme-v2 #hero .hero-monitor__cluster {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-v2 #hero .hero-monitor__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem 0.6rem;
}

body.theme-v2 #hero .hero-monitor-metric {
  padding: 0.35rem 0.4rem 0.4rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(34, 211, 238, 0.08);
}

body.theme-v2 #hero .hero-monitor-metric__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.28rem;
}

body.theme-v2 #hero .hero-monitor-metric__label {
  font-family: var(--v2-font-sans);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.5);
}

body.theme-v2 #hero .hero-monitor-metric__value {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(34, 211, 238, 0.9);
  white-space: nowrap;
}

body.theme-v2 #hero .hero-monitor-metric[data-metric="memory"] .hero-monitor-metric__value {
  color: rgba(129, 140, 248, 0.92);
}

body.theme-v2 #hero .hero-monitor-metric[data-metric="network"] .hero-monitor-metric__value {
  color: rgba(251, 191, 36, 0.92);
  font-size: 0.5rem;
}

body.theme-v2 #hero .hero-monitor-metric[data-metric="storage"] .hero-monitor-metric__value {
  color: rgba(52, 211, 153, 0.92);
}

body.theme-v2 #hero .hero-monitor-chart {
  display: block;
  width: 100%;
  height: 2.65rem;
  border-radius: 4px;
}

@keyframes hero-monitor-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

body.theme-v2 #hero .hero-code-panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  background: rgba(15, 23, 42, 0.65);
  border-radius: 10px 10px 0 0;
}

body.theme-v2 #hero .hero-code-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

body.theme-v2 #hero .hero-code-panel__dot:nth-child(1) {
  background: rgba(248, 113, 113, 0.55);
}

body.theme-v2 #hero .hero-code-panel__dot:nth-child(2) {
  background: rgba(251, 191, 36, 0.55);
}

body.theme-v2 #hero .hero-code-panel__dot:nth-child(3) {
  background: rgba(52, 211, 153, 0.55);
}

body.theme-v2 #hero .hero-code-panel__title {
  margin-left: 0.35rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(165, 243, 252, 0.55);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-v2 #hero .hero-code-panel__slider {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 0.4rem 0.5rem 0.35rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.06);
  pointer-events: auto;
}

body.theme-v2 #hero .hero-code-panel__pill {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.5);
  color: rgba(165, 243, 252, 0.45);
  font-family: var(--v2-font-sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18em 0.45em;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

body.theme-v2 #hero .hero-code-panel__pill:hover {
  color: rgba(165, 243, 252, 0.75);
  border-color: rgba(34, 211, 238, 0.28);
}

body.theme-v2 #hero .hero-code-panel__pill.is-active {
  color: rgba(34, 211, 238, 0.95);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

body.theme-v2 #hero .hero-code-panel__pre {
  margin: 0;
  padding: 0.55rem 0.65rem 0.65rem;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 7.5rem;
}

body.theme-v2 #hero .hero-code-panel__code {
  display: block;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: clamp(0.58rem, 0.95vw, 0.68rem);
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.72);
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

body.theme-v2 #hero .hero-code-panel__code::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: rgba(34, 211, 238, 0.85);
  opacity: 0;
}

body.theme-v2 #hero .hero-code-panel.is-typing .hero-code-panel__code::after {
  opacity: 1;
  animation: hero-code-cursor 0.75s step-end infinite;
}

body.theme-v2 #hero .hero-code-tok--key {
  color: rgba(129, 140, 248, 0.9);
}

body.theme-v2 #hero .hero-code-tok--value {
  color: rgba(52, 211, 153, 0.85);
}

body.theme-v2 #hero .hero-code-tok--keyword {
  color: rgba(251, 191, 36, 0.9);
}

body.theme-v2 #hero .hero-code-tok--prompt {
  color: rgba(34, 211, 238, 0.88);
}

body.theme-v2 #hero .hero-code-tok--comment {
  color: rgba(148, 163, 184, 0.55);
}

@keyframes hero-code-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes hero-skill-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate(var(--dx, 10px), var(--dy, -8px)) rotate(var(--rot, 0deg));
  }
}

body.theme-v2 #hero .hero-skill-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  --dx: 12px;
  --dy: -10px;
  --dur: 20s;
  --delay: 0s;
  --rot: -3deg;
  font-family: var(--v2-font-sans);
  font-size: clamp(0.58rem, 1.05vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.32);
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
  white-space: nowrap;
  transform-origin: center center;
  animation: hero-skill-drift var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  padding: 0.15em 0.35em;
}

body.theme-v2 #hero .hero-skill-tag--brand {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  padding: 0.32em 0.55em 0.32em 0.42em;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.14);
  box-shadow: 0 4px 20px rgba(7, 11, 20, 0.35);
}

body.theme-v2 #hero .hero-skill-tag__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.25));
}

body.theme-v2 #hero .hero-skill-tag__icon img {
  width: 1.05em;
  height: 1.05em;
  object-fit: contain;
  display: block;
}

body.theme-v2 #hero .hero-skill-tag__label {
  line-height: 1.2;
}

body.theme-v2 #hero .hero-skill-tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45), 0 0 24px rgba(99, 102, 241, 0.2);
  opacity: 0.7;
  z-index: -1;
  animation: hero-node-pulse 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

body.theme-v2 #hero .hero-skill-tag--brand::before {
  left: 1.05rem;
}

body.theme-v2 #hero .hero-skill-tag:nth-child(3n) {
  color: rgba(129, 140, 248, 0.18);
  text-shadow: 0 0 24px rgba(99, 102, 241, 0.1);
}

body.theme-v2 #hero .hero-skill-tag:nth-child(5n) {
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  opacity: 0.85;
}

body.theme-v2 #hero .hero-container {
  z-index: 3;
  text-align: center;
  padding: 0 1.25rem;
}

body.theme-v2 #hero .hero-quote {
  margin: 0 auto 1.35rem;
  padding: 0;
  max-width: min(40rem, 92vw);
  min-height: 4.25rem;
  border: none;
  animation: v2-fade-up 0.85s var(--v2-ease-out) both;
}

body.theme-v2 #hero .hero-quote__inner {
  margin: 0;
  padding: 0.65rem 1.1rem;
  border-radius: var(--v2-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: opacity 0.48s var(--v2-ease-out), transform 0.48s var(--v2-ease-out);
}

body.theme-v2 #hero .hero-quote.is-transitioning .hero-quote__inner {
  opacity: 0;
  transform: translateY(10px);
}

body.theme-v2 #hero .hero-quote.is-entering .hero-quote__inner {
  animation: hero-quote-in 0.48s var(--v2-ease-out) both;
}

body.theme-v2 #hero .hero-quote__text {
  margin: 0;
  font-family: var(--v2-font-sans);
  font-size: clamp(0.82rem, 1.65vw, 0.98rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.82);
}

body.theme-v2 #hero .hero-quote__author {
  display: block;
  margin: 0.45rem 0 0;
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.72);
}

@keyframes hero-quote-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.theme-v2 #hero .hero-greeting {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin-bottom: 1rem;
  min-height: 1.4em;
}

body.theme-v2 #hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  min-height: 1.1em;
  background: linear-gradient(120deg, #fff 20%, #a5f3fc 50%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-v2 #hero h1 .hero-typewriter.is-done {
  animation: v2-shimmer 8s linear infinite;
}

body.theme-v2 #hero .hero-typewriter {
  display: inline-block;
}

body.theme-v2 #hero .hero-typewriter.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: rgba(165, 243, 252, 0.85);
  animation: hero-typewriter-cursor 0.75s step-end infinite;
}

body.theme-v2 #hero .hero-typewriter--name.is-typing::after {
  height: 0.92em;
  background: rgba(165, 243, 252, 0.95);
}

@keyframes hero-typewriter-cursor {
  50% {
    opacity: 0;
  }
}

body.theme-v2 #hero p {
  font-family: var(--v2-font-sans);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(248, 250, 252, 0.88);
  opacity: 0;
  transform: translateY(14px);
}

body.theme-v2 #hero .hero-container.is-intro-done p {
  animation: v2-fade-up 0.9s var(--v2-ease-out) both;
}

body.theme-v2 #hero p span {
  color: var(--v2-accent);
  border-bottom-color: var(--v2-accent);
  font-weight: 600;
}

body.theme-v2 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
}

body.theme-v2 .hero-container.is-intro-done .hero-actions {
  animation: v2-fade-up 1s var(--v2-ease-out) 0.25s both;
}

body.theme-v2 .hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(14px);
}

body.theme-v2 .hero-container.is-intro-done .hero-stats {
  animation: v2-fade-up 1.05s var(--v2-ease-out) 0.32s both;
}

body.theme-v2 .hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 7.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--v2-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

body.theme-v2 .hero-stat__value {
  font-family: var(--v2-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--v2-accent);
  line-height: 1.2;
}

body.theme-v2 .hero-stat__label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  text-align: center;
  max-width: 14ch;
  line-height: 1.35;
}

body.theme-v2 .btn-hero-primary,
body.theme-v2 .btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s var(--v2-ease-out), box-shadow 0.25s, background 0.25s;
}

body.theme-v2 .btn-hero-primary {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  color: #042f2e !important;
  border: none;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.35);
}

body.theme-v2 .btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.45);
  color: #042f2e !important;
}

body.theme-v2 .btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

body.theme-v2 .btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  color: #fff !important;
}

/* High-visibility resume download — hero, sidebar, resume card */
body.theme-v2 .btn-download-resume,
body.theme-v2 .btn-hero-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1c1917 !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.25);
  transition: transform 0.25s var(--v2-ease-out), box-shadow 0.25s, filter 0.25s;
}

body.theme-v2 .btn-download-resume:hover,
body.theme-v2 .btn-hero-resume:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.55), 0 0 0 1px rgba(251, 191, 36, 0.4);
  color: #0c0a09 !important;
}

body.theme-v2 .btn-hero-resume {
  min-width: 11.5rem;
}

body.theme-v2 #header .profile-download-resume {
  width: calc(100% - 0.5rem);
  max-width: 15rem;
  margin: 1rem auto 0;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-v2 .resume-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

body.theme-v2 .resume-profile-actions .btn-download-resume {
  width: 100%;
}

body.theme-v2 .btn-resume-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--v2-accent-deep) !important;
  background: var(--v2-accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.35);
  transition: background 0.2s, transform 0.2s;
}

body.theme-v2 .btn-resume-linkedin:hover {
  background: rgba(6, 182, 212, 0.18);
  transform: translateY(-1px);
  color: var(--v2-accent-deep) !important;
}

body.theme-v2 .footer-resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1c1917 !important;
  text-decoration: none;
}

body.theme-v2 .footer-resume-link:hover {
  filter: brightness(1.06);
  color: #0c0a09 !important;
}

body.theme-v2 .hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: v2-bounce 2.2s ease-in-out infinite;
}

body.theme-v2 .hero-scroll-hint i {
  display: block;
  text-align: center;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

@keyframes v2-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes hero-node-pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-v2 #hero .hero-quote__inner,
  .v2-page-loader__quote-inner {
    transition: none;
  }

  body.theme-v2 #hero .hero-quote.is-entering .hero-quote__inner,
  .v2-page-loader__quote.is-entering .v2-page-loader__quote-inner {
    animation: none;
  }

  body.theme-v2 #hero .hero-skill-tag {
    animation: none;
    opacity: 0.25;
  }

  body.theme-v2 #hero .hero-skill-tag::before {
    animation: none;
    opacity: 0.35;
  }

  body.theme-v2 #hero .hero-network-canvas {
    opacity: 0.65;
  }

  body.theme-v2 #hero .hero-code-panel.is-typing .hero-code-panel__code::after {
    animation: none;
    opacity: 0;
  }

  body.theme-v2 #hero .hero-code-panel {
    opacity: 0.75;
  }

  body.theme-v2 #hero .hero-monitor__pulse {
    animation: none;
    opacity: 0.7;
  }

  body.theme-v2 #hero .hero-ops-block--pagerduty.is-firing,
  body.theme-v2 #hero .hero-ops-block__status--crit {
    animation: none;
  }

  body.theme-v2 #hero .hero-ops-health__item--warn .hero-ops-health__dot,
  body.theme-v2 #hero .hero-ops-health__item--fail .hero-ops-health__dot {
    animation: none;
  }

  body.theme-v2 #hero .hero-code-panel--pipeline.is-fail {
    animation: none;
  }

  body.theme-v2 #hero .hero-pipeline__job--run.is-running .hero-pipeline__job-icon {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  body.theme-v2 #hero .hero-skills-bg .hero-skill-tag:nth-child(n + 22) {
    display: none;
  }

  body.theme-v2 #hero .hero-code-bg {
    grid-template-columns: minmax(0, min(14rem, 40vw)) 1fr;
    padding-bottom: 2.25rem;
    --hero-panel-w: min(14rem, 40vw);
  }

  body.theme-v2 #hero .hero-code-bg__col--right {
    display: none;
  }

  body.theme-v2 #hero .hero-code-panel--pipeline {
    display: none;
  }

  body.theme-v2 #hero .hero-code-panel--ops {
    max-height: 44%;
    opacity: 0.8;
  }

  body.theme-v2 #hero .hero-code-panel--configs {
    max-height: 46%;
    opacity: 0.78;
  }

  body.theme-v2 #hero .hero-devops-toast--tl,
  body.theme-v2 #hero .hero-devops-toast--tr,
  body.theme-v2 #hero .hero-devops-toast--tc {
    display: none;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  body.theme-v2 #hero .hero-code-panel--pipeline {
    display: none;
  }

  body.theme-v2 #hero .hero-code-panel--ops {
    max-height: 46%;
  }

  body.theme-v2 #hero .hero-code-panel--configs {
    max-height: 48%;
  }
}

@media (min-width: 1200px) {
  body.theme-v2 #hero .hero-code-bg {
    --hero-panel-w: min(15.5rem, 20vw);
    padding-left: clamp(0.75rem, 1.5vw, 1.25rem);
    padding-right: clamp(0.75rem, 1.5vw, 1.25rem);
  }
}

@media (max-width: 576px) {
  body.theme-v2 #hero .hero-code-bg {
    display: none;
  }
}

@media (max-width: 576px) {
  body.theme-v2 #hero .hero-skills-bg .hero-skill-tag:nth-child(n + 16) {
    display: none;
  }

  body.theme-v2 .hero-stat {
    min-width: calc(50% - 0.75rem);
    flex: 1 1 calc(50% - 0.75rem);
  }
}

/* ----- Sections ----- */
body.theme-v2 section {
  padding: 56px 0;
  scroll-margin-top: 1.25rem;
}

body.theme-v2 .section-bg {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
}

body.theme-v2 .section-title h2 {
  color: var(--v2-ink);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

body.theme-v2 .section-title h2::after {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--v2-accent), var(--v2-accent-deep));
}

html.v2-motion body.theme-v2 .section-title h2::after {
  transform: scaleX(0);
  transform-origin: left;
}

body.theme-v2 .section-title.is-visible h2::after {
  animation: v2-line-grow 0.9s var(--v2-ease-out) 0.12s both;
}

body.theme-v2 .section-title p {
  color: var(--v2-ink-muted);
  line-height: 1.7;
  max-width: 65ch;
}

@keyframes v2-line-grow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

/* About — card layout, compact avatar, fact grid */
body.theme-v2 .about-panel {
  background: var(--v2-surface);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--v2-radius);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.06);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  max-width: 920px;
  margin-inline: auto;
}

body.theme-v2 .about-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-v2 .about-avatar {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--v2-accent), rgba(129, 140, 248, 0.75), var(--v2-accent-deep));
  box-shadow: 0 10px 32px rgba(6, 182, 212, 0.22);
}

body.theme-v2 .about-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid var(--v2-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--v2-ease-out);
}

body.theme-v2 .about-avatar:hover .about-avatar__img {
  transform: scale(1.04);
}

body.theme-v2 .about-panel__intro {
  flex: 1;
  min-width: min(100%, 220px);
}

body.theme-v2 .about-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  justify-content: flex-start;
}

body.theme-v2 .about-motto {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--v2-ink-muted);
  line-height: 1.45;
}

body.theme-v2 .about-motto strong {
  font-weight: 600;
  color: var(--v2-ink);
}

body.theme-v2 .about-role-tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--v2-accent-deep);
  background: var(--v2-accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  line-height: 1.2;
}

body.theme-v2 .about-bio {
  max-width: 68ch;
}

body.theme-v2 .about-bio p {
  margin: 0 0 1rem;
  color: var(--v2-ink-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

body.theme-v2 .about-bio p:last-child {
  margin-bottom: 0;
}

body.theme-v2 .about-bio strong {
  color: var(--v2-ink);
  font-weight: 600;
}

body.theme-v2 .about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

body.theme-v2 .about-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  margin: 0;
  background: var(--v2-surface-2);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--v2-radius-sm);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--v2-ease-out);
}

body.theme-v2 .about-fact:hover {
  background: var(--v2-accent-soft);
  border-color: rgba(6, 182, 212, 0.18);
  transform: translateY(-1px);
}

body.theme-v2 .about-fact__icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  margin-top: 0.15rem;
  color: var(--v2-accent-deep);
}

body.theme-v2 .about-fact__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-ink-muted);
  margin-bottom: 0.15rem;
}

body.theme-v2 .about-fact__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--v2-ink);
  word-break: break-word;
}

body.theme-v2 .about-fact__value[href] {
  text-decoration: none;
}

body.theme-v2 .about-fact__value[href]:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  body.theme-v2 .about-panel__top {
    flex-direction: column;
    text-align: center;
  }

  body.theme-v2 .about-role-tags {
    justify-content: center;
  }
}

/* Skills lists */
body.theme-v2 #skills .list-group-item,
body.theme-v2 #skills .skills-category {
  border-radius: var(--v2-radius-sm);
}

body.theme-v2 #skills .list-group {
  border-radius: var(--v2-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--v2-surface);
}

body.theme-v2 #skills .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.85rem 1rem;
  transition: background 0.25s, transform 0.25s var(--v2-ease-out);
}

body.theme-v2 #skills .list-group-item:last-child {
  border-bottom: none;
}

body.theme-v2 #skills .list-group-item:hover {
  background: var(--v2-accent-soft);
  transform: translateX(4px);
}

body.theme-v2 #skills .skills-category {
  color: var(--v2-accent-deep);
  padding: 0.25rem 0 0.5rem;
}

/* Resume */
body.theme-v2 .resume .resume-title {
  color: var(--v2-ink);
}

body.theme-v2 .resume .resume-item {
  border-left-color: var(--v2-accent-deep);
}

body.theme-v2 .resume .resume-item::before {
  border-color: var(--v2-accent-deep);
  box-shadow: 0 0 0 4px var(--v2-accent-soft);
}

body.theme-v2 .resume .resume-item h5 {
  background: linear-gradient(90deg, var(--v2-accent-soft), transparent);
  border-radius: 8px;
}

body.theme-v2 .resume .btn-primary {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

body.theme-v2 .resume .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.4);
}

body.theme-v2 .resume .btn-outline-primary {
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border-color: var(--v2-accent-deep);
  color: var(--v2-accent-deep);
}

body.theme-v2 .resume .btn-outline-primary:hover {
  background: var(--v2-accent-soft);
  border-color: var(--v2-accent-deep);
  color: var(--v2-accent-deep);
}

body.theme-v2 .resume-profile {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border) !important;
}

body.theme-v2 .resume-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--v2-ink-muted);
}

body.theme-v2 .resume-contact li i {
  color: var(--v2-accent-deep);
  margin-top: 0.15rem;
}

body.theme-v2 .resume-skill-grid {
  display: grid;
  gap: 0.65rem 1rem;
}

body.theme-v2 .resume-skill-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-accent-deep);
  margin: 0;
}

body.theme-v2 .resume-skill-grid dd {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--v2-ink);
}

body.theme-v2 .resume-cert-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

body.theme-v2 .resume-cert-list li {
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

body.theme-v2 .resume .resume-item ul li {
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

body.theme-v2 .resume-course h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

body.theme-v2 .resume-course h5 {
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.65rem;
}

body.theme-v2 .resume-course ul {
  margin-bottom: 0;
}

body.theme-v2 #resume-courses .resume-title {
  margin-top: 0.5rem;
}

/* Certifications */
body.theme-v2 .certifications .card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--v2-radius);
  overflow: hidden;
  transition: transform 0.35s var(--v2-ease-out), box-shadow 0.35s;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

body.theme-v2 .certifications .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body.theme-v2 .certifications .carousel-indicators [type="button"] {
  background-color: var(--v2-accent-deep);
}

/* Survey */
body.theme-v2 #survey .btn-primary {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
}

body.theme-v2 #survey .survey-embed iframe {
  border-radius: var(--v2-radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

body.theme-v2 #survey figure img {
  border-radius: var(--v2-radius);
}

/* What I use — tech icons */
body.theme-v2 #what-i-use .tech-icon {
  padding: 1rem 1.15rem;
  border-radius: var(--v2-radius-sm);
  background: var(--v2-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s var(--v2-ease-out), box-shadow 0.3s, border-color 0.3s;
  animation: v2-float 5s ease-in-out infinite;
  animation-delay: calc(var(--v2-i, 0) * 0.12s);
}

body.theme-v2 #what-i-use .tech-icon:nth-child(odd) {
  --v2-i: 1;
}

body.theme-v2 #what-i-use .tech-icon:nth-child(3n) {
  animation-duration: 6s;
}

body.theme-v2 #what-i-use .tech-icon:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.2);
  animation: none;
}

body.theme-v2 #what-i-use .tech-icon img {
  object-fit: contain;
}

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

/* Contact */
body.theme-v2 .contact .info,
body.theme-v2 .contact .php-email-form,
body.theme-v2 .contact .contact-email-form {
  border-radius: var(--v2-radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

body.theme-v2 .contact .info i {
  background: var(--v2-accent-soft);
  color: var(--v2-accent-deep);
}

body.theme-v2 .contact .info .email:hover i,
body.theme-v2 .contact .info .address:hover i,
body.theme-v2 .contact .info .phone:hover i {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  color: #042f2e;
}

body.theme-v2 .contact .php-email-form input,
body.theme-v2 .contact .php-email-form textarea,
body.theme-v2 .contact .contact-email-form input,
body.theme-v2 .contact .contact-email-form textarea {
  border-radius: var(--v2-radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.theme-v2 .contact .php-email-form input:focus,
body.theme-v2 .contact .php-email-form textarea:focus,
body.theme-v2 .contact .contact-email-form input:focus,
body.theme-v2 .contact .contact-email-form textarea:focus {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-soft);
}

body.theme-v2 .contact .php-email-form button[type="submit"],
body.theme-v2 .contact .contact-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  border: none;
  border-radius: 999px;
  padding: 0.65rem 2rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
}

body.theme-v2 .contact .php-email-form button[type="submit"]:hover,
body.theme-v2 .contact .contact-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.35);
}

body.theme-v2 .contact .contact-email-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.theme-v2 .contact .map-iframe {
  border-radius: var(--v2-radius-sm);
}

/* Footer — main column only (override iPortfolio sidebar-fixed footer) */
body.theme-v2 #footer {
  position: static;
  left: auto;
  bottom: auto;
  width: auto;
  margin-left: 300px;
  z-index: 1;
  background: linear-gradient(180deg, #0f172a 0%, #070b14 100%);
  color: rgba(248, 250, 252, 0.75);
  padding: 2.5rem 0;
}

@media (max-width: 1199.98px) {
  body.theme-v2 #footer {
    margin-left: 0;
  }
}

body.theme-v2 #footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

body.theme-v2 #footer .footer-name {
  margin: 0;
  font-family: var(--v2-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

body.theme-v2 #footer .footer-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.75);
}

body.theme-v2 #footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

body.theme-v2 #footer .footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(248, 250, 252, 0.8);
  transition: color 0.2s;
}

body.theme-v2 #footer .footer-nav a:hover {
  color: var(--v2-accent);
}

body.theme-v2 #footer .footer-social {
  display: flex;
  gap: 0.6rem;
}

body.theme-v2 #footer .footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 1.15rem;
  transition: transform 0.25s var(--v2-ease-out), background 0.25s;
}

body.theme-v2 #footer .footer-social a:hover {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  color: #042f2e;
  transform: translateY(-2px);
}

body.theme-v2 #footer .footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.55);
}

body.theme-v2 #footer a {
  color: var(--v2-accent);
}

body.theme-v2 #footer a:hover {
  color: #a5f3fc;
}

/* Back to top */
body.theme-v2 .back-to-top {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

body.theme-v2 .back-to-top:hover {
  background: linear-gradient(135deg, #67e8f9, var(--v2-accent));
}

/* Floating section nav */
body.theme-v2 .section-quick-nav {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 996;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: min(92vw, 640px);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--v2-ease-out),
    opacity 0.35s var(--v2-ease-out);
}

body.theme-v2 .section-quick-nav.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.theme-v2 .section-quick-nav__link {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(248, 250, 252, 0.78);
  transition: background 0.2s, color 0.2s;
}

body.theme-v2 .section-quick-nav__link:hover,
body.theme-v2 .section-quick-nav__link.is-active {
  background: rgba(34, 211, 238, 0.18);
  color: #a5f3fc;
}

@media (max-width: 767.98px) {
  body.theme-v2 .section-quick-nav {
    bottom: 4.5rem;
    max-width: calc(100vw - 1.5rem);
  }

  body.theme-v2 .section-quick-nav__link {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }
}

body.theme-v2 .skip-link {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
}

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

  body.theme-v2 #hero h1 {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #fff;
  }

  body.theme-v2 #hero .hero-greeting,
  body.theme-v2 #hero h1,
  body.theme-v2 #hero p,
  body.theme-v2 .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.theme-v2 #hero .hero-typewriter::after {
    display: none;
  }

  body.theme-v2 #hero h1 .hero-typewriter.is-done {
    animation: none;
  }

  body.theme-v2 .hero-scroll-hint,
  body.theme-v2 .hero-stats {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.theme-v2 #what-i-use .tech-icon {
    animation: none;
  }

  body.theme-v2 .section-title h2::after {
    animation: none;
  }

  body.theme-v2 #header .profile-avatar-wrap:hover .profile-avatar {
    transform: none;
  }

  body.theme-v2 #header .profile-avatar-flip__inner {
    transition: none;
  }
}

/* Credly badge grid */
body.theme-v2 .certifications .credly-badge-card {
  border-radius: var(--v2-radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.35s var(--v2-ease-out), box-shadow 0.35s;
}

body.theme-v2 .certifications .credly-badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

/* Blog listing + article */
body.theme-v2 .blog-card {
  border-radius: var(--v2-radius);
  transition: transform 0.35s var(--v2-ease-out), box-shadow 0.35s;
}

body.theme-v2 .blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1) !important;
}

body.theme-v2 .blog-article .blog-prose {
  font-size: 1.02rem;
  line-height: 1.75;
}

body.theme-v2 .blog-article .blog-prose h2 {
  color: var(--v2-heading, #0f172a);
}

body.theme-v2 #blog .blog-open-icon {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
}

body.theme-v2 #blog .blog-open-icon:hover,
body.theme-v2 #blog .blog-open-icon:focus {
  background: linear-gradient(135deg, #67e8f9, var(--v2-accent));
}

body.theme-v2 .blog-article .blog-article-meta .blog-meta-label {
  font-weight: 600;
  color: var(--v2-accent, #0d6efd);
}

body.theme-v2 #blog .blog-index-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  max-width: 36rem;
  margin-inline: auto;
}

body.theme-v2 #blog .blog-search-input {
  border-radius: 999px;
  padding: 0.6rem 1.1rem 0.6rem 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--v2-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E")
    no-repeat 0.95rem center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.theme-v2 #blog .blog-search-input:focus {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-soft);
}

body.theme-v2 #blog .blog-index-toolbar__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

body.theme-v2 #blog .blog-col--hidden {
  display: none !important;
}

body.theme-v2 #blog .blog-col--truncated {
  display: none !important;
}

body.theme-v2 #blog .blog-category {
  margin-bottom: 0.5rem;
}

body.theme-v2 #blog .blog-category__heading {
  margin: 0 0 0.75rem;
  text-align: center;
}

body.theme-v2 #blog .blog-category__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-surface);
  color: var(--v2-ink);
  font-family: var(--v2-font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

body.theme-v2 #blog .blog-category__toggle:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body.theme-v2 #blog .blog-category__toggle:focus-visible {
  outline: 3px solid var(--v2-accent);
  outline-offset: 2px;
}

body.theme-v2 #blog .blog-category__count {
  font-family: var(--v2-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-ink-muted);
  background: var(--v2-surface-2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

body.theme-v2 #blog .blog-category__chevron {
  font-size: 1.1rem;
  color: var(--v2-accent-deep);
  transition: transform 0.25s var(--v2-ease-out);
}

body.theme-v2 #blog .blog-category:not(.blog-category--collapsed) .blog-category__chevron {
  transform: rotate(180deg);
}

body.theme-v2 #blog .blog-category--collapsed .row.g-4,
body.theme-v2 #blog .blog-category--collapsed .blog-category__more {
  display: none !important;
}

body.theme-v2 #blog .blog-category__more {
  display: block;
  margin: 0.75rem auto 1.5rem;
}

body.theme-v2 #blog .blog-index-card--interactive {
  cursor: pointer;
}

body.theme-v2 #blog .blog-index-card--interactive:focus-visible {
  outline: 3px solid var(--v2-accent);
  outline-offset: 3px;
}

body.theme-v2 #blog .blog-index-toolbar .btn.active {
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-deep));
  border-color: transparent;
  color: #042f2e;
  font-weight: 600;
}

body.theme-v2 #blog .blog-index-toolbar .btn-outline-secondary {
  border-radius: 999px;
}

body.theme-v2 #blog .blog-index-card time {
  font-variant-numeric: tabular-nums;
}

body.theme-v2 .blog-article-meta .blog-meta-updated,
body.theme-v2 #blog .blog-meta-updated {
  color: var(--v2-muted, #64748b);
  font-size: 0.92em;
}

body.theme-v2 .blog-article .blog-tags .badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.theme-v2 .blog-article .blog-author:hover,
body.theme-v2 .blog-article .blog-author:focus {
  color: var(--v2-accent, #0d6efd) !important;
}

body.theme-v2 .ml-question-bank .ml-q {
  background: #fff;
}

body.theme-v2 .ml-question-bank .ml-q summary {
  cursor: pointer;
  list-style: none;
}

body.theme-v2 .ml-question-bank .ml-q summary::-webkit-details-marker {
  display: none;
}

body.theme-v2 .ml-question-bank .ml-q[open] summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(13, 110, 253, 0.04);
}

body.theme-v2 .ml-question-bank .ml-q summary::before {
  content: "▸ ";
  color: var(--v2-accent, #0d6efd);
  font-weight: 600;
}

body.theme-v2 .ml-question-bank .ml-q[open] summary::before {
  content: "▾ ";
}

body.theme-v2 .aptitude-bank .aptitude-accordion .accordion-button {
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 0.85rem 1rem;
}

body.theme-v2 .aptitude-bank .aptitude-accordion .accordion-button:not(.collapsed) {
  background: rgba(13, 110, 253, 0.06);
  color: inherit;
  box-shadow: none;
}

body.theme-v2 .aptitude-bank .aptitude-qnum {
  font-variant-numeric: tabular-nums;
  min-width: 2rem;
}

body.theme-v2 .aptitude-bank .aptitude-stem {
  text-align: left;
}

body.theme-v2 .aptitude-bank .aptitude-category {
  scroll-margin-top: 5rem;
}

body.theme-v2 .aptitude-bank .aptitude-toolbar {
  margin-top: 0.5rem;
}

/* ----- Page loader ----- */
.v2-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--v2-sidebar);
  transition: opacity 0.55s var(--v2-ease-out), visibility 0.55s;
}

.v2-page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.v2-page-loader__inner {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-page-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.12);
  border-top-color: var(--v2-accent);
  animation: v2-loader-spin 0.9s linear infinite;
}

.v2-page-loader__brand {
  font-family: var(--v2-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.92);
}

.v2-page-loader__quote {
  margin: 1.35rem auto 0;
  padding: 0 1.5rem;
  max-width: 26rem;
  min-height: 3.5rem;
  text-align: center;
}

.v2-page-loader__quote-inner {
  margin: 0;
  transition: opacity 0.38s var(--v2-ease-out), transform 0.38s var(--v2-ease-out);
}

.v2-page-loader__quote.is-transitioning .v2-page-loader__quote-inner {
  opacity: 0;
  transform: translateY(8px);
}

.v2-page-loader__quote.is-entering .v2-page-loader__quote-inner {
  animation: hero-quote-in 0.38s var(--v2-ease-out) both;
}

.v2-page-loader__quote-text {
  margin: 0;
  font-family: var(--v2-font-sans);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.78);
}

.v2-page-loader__quote-author {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.65);
}

.v2-page-loader__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(34, 211, 238, 0.08);
  overflow: hidden;
}

.v2-page-loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--v2-accent), var(--v2-accent-deep));
  animation: v2-loader-bar 1.8s var(--v2-ease-out) forwards;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

@keyframes v2-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes v2-loader-bar {
  0% { width: 0; }
  70% { width: 85%; }
  100% { width: 100%; }
}

/* ----- Inline spinner ----- */
.v2-spinner {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(34, 211, 238, 0.2);
  border-top-color: var(--v2-accent-deep);
  border-radius: 50%;
  animation: v2-loader-spin 0.75s linear infinite;
  vertical-align: -0.2em;
}

.v2-spinner--sm {
  width: 0.95rem;
  height: 0.95rem;
  border-width: 2px;
}

.v2-inline-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--v2-ink-muted);
  font-weight: 500;
}

.v2-inline-loader.d-block {
  display: flex;
}

body.theme-v2 .contact .v2-inline-loader.d-block {
  color: var(--v2-accent-deep);
}

body.theme-v2 .contact .contact-email-form .loading:before {
  content: none;
  display: none;
}

body.theme-v2 .contact .contact-email-form .loading {
  background: transparent;
  padding: 0.75rem 0;
}

/* ----- Skeleton loaders ----- */
.v2-skeleton-card {
  border-radius: var(--v2-radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--v2-surface);
  padding: 1.25rem;
  overflow: hidden;
}

.v2-skeleton {
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(34, 211, 238, 0.1) 50%,
    rgba(15, 23, 42, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: v2-skeleton-shimmer 1.4s ease-in-out infinite;
}

.v2-skeleton--badge {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.v2-skeleton--line {
  height: 0.75rem;
  margin-bottom: 0.65rem;
}

.v2-skeleton--title {
  width: 72%;
  height: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.v2-skeleton--text {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.credly-skeleton-card .v2-skeleton--text:last-child {
  width: 55%;
  margin-bottom: 0;
}

.credly-badges-status {
  color: var(--v2-ink-muted);
  font-size: 0.92rem;
}

@keyframes v2-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----- Scroll progress ----- */

/* ----- Hero stats ----- */
body.theme-v2 .hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  animation: v2-fade-up 1.05s var(--v2-ease-out) 0.35s both;
}

body.theme-v2 .hero-stat {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 0.85rem 1rem;
  text-align: center;
  border-radius: var(--v2-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.14);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--v2-ease-out), border-color 0.35s, box-shadow 0.35s;
}

body.theme-v2 .hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.18);
}

body.theme-v2 .hero-stat__value {
  display: block;
  font-family: var(--v2-font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.2;
}

body.theme-v2 .hero-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.72);
  line-height: 1.35;
}

body.theme-v2 .hero-stat--pulse .hero-stat__value {
  animation: v2-pulse-glow 2.4s ease-in-out infinite;
}

@keyframes v2-pulse-glow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
  }
}

/* ----- Animated hero background mesh ----- */
body.theme-v2 #hero .hero-bg {
  animation: v2-hero-mesh 18s ease-in-out infinite alternate;
}

@keyframes v2-hero-mesh {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.92;
  }
}

/* Pause decorative CSS when tab is in background (reduces GPU load / tab crashes). */
html.is-page-hidden body.theme-v2 #hero .hero-bg,
html.is-page-hidden body.theme-v2 #hero .hero-skill-tag,
html.is-page-hidden body.theme-v2 #hero .hero-skill-tag::before,
html.is-page-hidden body.theme-v2 #hero .hero-monitor__pulse,
html.is-page-hidden body.theme-v2 #hero .hero-ops-block--pagerduty.is-firing,
html.is-page-hidden body.theme-v2 #hero .hero-stat--pulse .hero-stat__value {
  animation-play-state: paused !important;
}

/* Lite hero: fewer GPU layers, hide heaviest panels (see hero-performance.js). */
html.hero-no-canvas body.theme-v2 #hero .hero-network-canvas {
  display: none !important;
}

html.hero-no-monitor body.theme-v2 #hero .hero-code-panel--monitor {
  display: none !important;
}

html.hero-no-toasts body.theme-v2 #hero .hero-devops-toasts {
  display: none !important;
}

html.hero-no-pipeline body.theme-v2 #hero .hero-code-panel--pipeline {
  display: none !important;
}

html.hero-perf-lite body.theme-v2 #hero .hero-skill-tag::before {
  animation: none;
  opacity: 0.4;
}

html.hero-perf-lite body.theme-v2 #hero .hero-code-panel,
html.hero-perf-lite body.theme-v2 #hero .hero-devops-toast {
  backdrop-filter: none;
  background: rgba(7, 11, 20, 0.9);
}

@media (min-width: 992px) {
  body.theme-v2 #hero .hero-skills-bg .hero-skill-tag:nth-child(n + 29) {
    display: none;
  }
}

/* ----- Sidebar nav entrance ----- */
body.theme-v2 .nav-menu > ul > li {
  opacity: 0;
  transform: translateX(-14px);
  animation: v2-nav-in 0.55s var(--v2-ease-out) forwards;
}

body.theme-v2 .nav-menu > ul > li:nth-child(1) { animation-delay: 0.04s; }
body.theme-v2 .nav-menu > ul > li:nth-child(2) { animation-delay: 0.08s; }
body.theme-v2 .nav-menu > ul > li:nth-child(3) { animation-delay: 0.12s; }
body.theme-v2 .nav-menu > ul > li:nth-child(4) { animation-delay: 0.16s; }
body.theme-v2 .nav-menu > ul > li:nth-child(5) { animation-delay: 0.2s; }
body.theme-v2 .nav-menu > ul > li:nth-child(6) { animation-delay: 0.24s; }
body.theme-v2 .nav-menu > ul > li:nth-child(7) { animation-delay: 0.28s; }
body.theme-v2 .nav-menu > ul > li:nth-child(8) { animation-delay: 0.32s; }
body.theme-v2 .nav-menu > ul > li:nth-child(9) { animation-delay: 0.36s; }
body.theme-v2 .nav-menu > ul > li:nth-child(10) { animation-delay: 0.4s; }

@keyframes v2-nav-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ----- Section title reveal ----- */
html.v2-motion body.theme-v2 .section-title {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--v2-ease-out), transform 0.75s var(--v2-ease-out);
}

html.v2-motion body.theme-v2 .section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Stagger children ----- */
html.v2-motion [data-v2-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--v2-ease-out),
    transform 0.65s var(--v2-ease-out);
}

html.v2-motion [data-v2-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-v2-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-v2-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-v2-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-v2-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-v2-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-v2-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }
[data-v2-stagger].is-visible > *:nth-child(7) { transition-delay: 480ms; }
[data-v2-stagger].is-visible > *:nth-child(8) { transition-delay: 560ms; }

/* ----- Resume timeline draw ----- */
html.v2-motion body.theme-v2 .resume .resume-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.7s var(--v2-ease-out), transform 0.7s var(--v2-ease-out);
}

html.v2-motion body.theme-v2 .resume .resume-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

html.v2-motion body.theme-v2 .resume .resume-item::before {
  transform: scale(0);
  transition: transform 0.45s var(--v2-ease-out) 0.1s;
}

html.v2-motion body.theme-v2 .resume .resume-item.is-visible::before {
  transform: scale(1);
}

html.v2-motion body.theme-v2 #certificationCarousel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--v2-ease-out), transform 0.85s var(--v2-ease-out);
}

html.v2-motion body.theme-v2 #certificationCarousel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Card lift on scroll (AOS complement) ----- */
body.theme-v2 [data-aos] {
  transition-timing-function: var(--v2-ease-out) !important;
}

body.theme-v2 .about-panel {
  transition: box-shadow 0.4s var(--v2-ease-out), transform 0.4s var(--v2-ease-out);
}

body.theme-v2 .about-panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 50px rgba(15, 23, 42, 0.1);
}

body.theme-v2 .about-role-tag {
  transition: transform 0.25s var(--v2-ease-out), background 0.25s;
}

body.theme-v2 .about-role-tag:hover {
  transform: translateY(-2px) scale(1.03);
}

body.theme-v2 .contact .info > div {
  transition: transform 0.3s var(--v2-ease-out);
}

body.theme-v2 .contact .info > div:hover {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  body.theme-v2 #hero .hero-bg {
    animation: none;
  }

  body.theme-v2 .nav-menu > ul > li {
    opacity: 1;
    transform: none;
    animation: none;
  }

  body.theme-v2 .section-title,
  body.theme-v2 .section-title.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.theme-v2 .section-title h2::after,
  body.theme-v2 .section-title.is-visible h2::after {
    transform: scaleX(1);
    transition: none;
  }

  [data-v2-stagger] > *,
  html.v2-motion [data-v2-stagger].is-visible > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.theme-v2 .resume .resume-item,
  body.theme-v2 .resume .resume-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.theme-v2 .resume .resume-item::before,
  body.theme-v2 .resume .resume-item.is-visible::before {
    transform: scale(1);
    transition: none;
  }

  body.theme-v2 #certificationCarousel,
  body.theme-v2 #certificationCarousel.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.theme-v2 .hero-stats {
    animation: none;
  }

  body.theme-v2 .hero-stat--pulse .hero-stat__value {
    animation: none;
  }

  .v2-page-loader,
  .v2-page-loader__ring,
  .v2-page-loader__bar span,
  .v2-skeleton,
  .v2-spinner {
    animation: none !important;
  }
}
