:root {
  --bg: #050505;
  --panel: rgba(18, 18, 20, 0.74);
  --text: #f7f7f3;
  --muted: #b8bab5;
  --soft: #777b76;
  --red: #0066ff;
  --red-dark: #0040b3;
  --blue: #0066ff;
  --blue-dark: #0040b3;
  --amber: #f4b34a;
  --cyan: #00d2ff;
  --green: #65d46e;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #0066ff #08080a;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* ==========================================================================
   LEGENDARY FUTURISTIC CUSTOM SCROLLBAR (ELECTRIC BLUE THEME)
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #08080c;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d2ff 0%, #0066ff 50%, #9b51e0 100%);
  border-radius: 20px;
  border: 2px solid #08080c;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.7);
  transition: all 300ms ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00f0ff 0%, #0052cc 50%, #b8070f 100%);
  border-width: 1px;
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.95), 0 0 12px rgba(0, 102, 255, 0.95);
}

::-webkit-scrollbar-corner {
  background: #08080c;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

#heroCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 12%, rgba(0, 102, 255, 0.26), transparent 34%),
    radial-gradient(circle at 20% 55%, rgba(0, 210, 255, 0.18), transparent 30%),
    linear-gradient(115deg, #040814 0%, #091024 47%, #050505 100%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0) 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  position: relative;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  color: var(--text);
  background: var(--red);
}

/* Brand Capybara Rectangular Animation */
.brand-capybara {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: transform 100ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.brand-capybara svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: capyWalk 1s ease-in-out infinite alternate;
}

@keyframes capyWalk {
  0% {
    transform: rotate(-6deg) translateY(0);
  }
  100% {
    transform: rotate(6deg) translateY(-2px);
  }
}

.nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

@media (min-width: 901px) {
  .topbar .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.nav a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--red), var(--blue));
  background-size: 0% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 300ms cubic-bezier(0.25, 1, 0.5, 1), color 180ms ease;
}

.nav a:hover {
  color: #ffffff;
  background-size: 100% 2px;
}

/* Active page: solid blue underline always visible */
.nav a.is-active {
  color: #ffffff;
  background-image: linear-gradient(90deg, var(--blue), var(--blue));
  background-size: 100% 2px;
}

/* Footer bottom blue line */
.footer-bottom {
  border-top: 2px solid var(--blue);
  padding-top: 12px;
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}


.cv-link,
.lang-toggle,
.secondary-action,
.contact-link,
.detail-button,
.filter-bar button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.cv-link,
.lang-toggle,
.secondary-action {
  padding: 11px 16px;
}

.lang-toggle {
  min-width: 48px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: center;
  gap: 48px;
  padding: 116px clamp(20px, 5vw, 72px) 88px;
}

/* ── Hero → Portal Gradient Fade ───────────────── */
.hero-fade {
  width: 100%;
  height: 120px;
  margin-top: -1px;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(8, 12, 22, 0.95) 30%,
    rgba(10, 18, 38, 0.85) 55%,
    rgba(12, 24, 52, 0.6) 75%,
    rgba(14, 30, 60, 0.3) 90%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Portal Card 3D Tilt ───────────────────────── */
.portal-card {
  perspective: 800px;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
}

*:hover > .card-glare {
  opacity: 1;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: center;
  width: 100%;
  max-width: 440px;
}

.hero-header-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-title-group .eyebrow {
  margin: 0 0 6px;
}

.hero-title-group h1 {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: clamp(2.0rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.profile-photo-wrap {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid var(--red) !important;
  box-shadow: 0 0 28px rgba(0, 102, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  background: rgba(18, 18, 20, 0.6) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.profile-photo-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-photo-wrap:hover img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(0, 0, 0, 0) 24%);
}

.hero-content {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: none;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.8);
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.7vw, 1.38rem);
  line-height: 1.55;
  font-weight: 500;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  background: #ffffff;
  color: #050505;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin-top: 38px;
}

.hero-stats div {
  min-height: 94px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.hero-stats span,
.project-card p,
.skill-card p,
.contact-copy p,
.availability-board p,
.story-copy p,
.timeline p,
.credential-grid p,
.proof-grid span,
blockquote,
.form-note {
  color: var(--muted);
  line-height: 1.52;
}

.signal-panel {
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-head strong {
  color: var(--green);
  font-size: 3rem;
  line-height: 0.9;
}

.metric-bars {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.metric-bars i,
.kpi-grid i,
.skill-card i {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.metric-bars i {
  height: 13px;
}

.metric-bars i::before,
.kpi-grid i::before,
.skill-card i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, var(--meter));
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan), var(--green));
}

.metric-bars i::before {
  animation: pulseWidth 3.6s ease-in-out infinite;
}

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

.panel-grid span {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.profile-strip,
.story-section,
.kpi-section,
.rail-section,
.systems-section,
.tool-section,
.credentials-section,
.proof-section,
.contact-section {
  padding: 56px clamp(20px, 5vw, 72px);
  background: var(--bg);
}

.profile-strip,
.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}

.profile-copy h2,
.story-copy h2,
.contact-copy h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.profile-matrix div,
.timeline article,
.credential-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(229, 9, 20, 0.22), rgba(255, 255, 255, 0.04) 38%, rgba(0, 0, 0, 0.45)),
    #111111;
}

.profile-matrix div {
  min-height: 160px;
  padding: 18px;
}

.profile-matrix span,
.timeline span,
.credential-grid span {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-weight: 900;
}

.profile-matrix strong,
.timeline strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.28;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  min-height: 136px;
  padding: 18px;
}

.timeline span {
  margin-bottom: 18px;
}

.kpi-section,
.systems-section {
  background:
    linear-gradient(180deg, var(--bg), rgba(12, 12, 12, 0.94)),
    var(--bg);
}

.rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.rail-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
}

.kpi-grid,
.skill-stage,
.credential-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 86% 12%, rgba(57, 211, 199, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    #101010;
}

.kpi-grid span {
  color: var(--muted);
  font-weight: 800;
}

.kpi-grid strong {
  display: block;
  margin: 34px 0 24px;
  color: #ffffff;
  font-size: 3.8rem;
  line-height: 0.85;
}

.kpi-grid strong::after {
  content: "%";
  color: var(--red);
  font-size: 1.5rem;
}

.kpi-grid i,
.skill-card i {
  height: 9px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar button,
.detail-button {
  min-height: 38px;
  padding: 9px 12px;
  cursor: pointer;
}

.filter-bar button.is-active {
  border-color: var(--red);
  background: var(--red);
}

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

.project-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #141414;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  filter: brightness(1.08);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.52);
}

.project-card.is-wide {
  grid-column: span 2;
}

.card-visual {
  position: absolute;
  inset: 0;
}

.card-visual::before,
.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}

.flow-visual {
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.9), rgba(229, 9, 20, 0.1) 42%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 62px),
    linear-gradient(145deg, #202020, #050505);
}

.flow-visual::before {
  background:
    radial-gradient(circle at 24% 28%, var(--amber) 0 5px, transparent 6px),
    radial-gradient(circle at 58% 42%, var(--cyan) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 22%, #fff 0 4px, transparent 5px);
}

.forecast-visual {
  background:
    linear-gradient(160deg, rgba(57, 211, 199, 0.56), transparent 48%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 34px),
    #111615;
}

.forecast-visual::before {
  clip-path: polygon(0 74%, 18% 54%, 35% 64%, 54% 31%, 74% 42%, 100% 18%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(57, 211, 199, 0.88), rgba(57, 211, 199, 0.08));
}

.quality-visual {
  background:
    radial-gradient(circle at 70% 22%, rgba(244, 179, 74, 0.56), transparent 25%),
    conic-gradient(from 40deg, rgba(229, 9, 20, 0.85), rgba(244, 179, 74, 0.85), rgba(101, 212, 110, 0.82), rgba(229, 9, 20, 0.85));
}

.quality-visual::before {
  inset: 22%;
  border: 28px solid rgba(0, 0, 0, 0.46);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.5);
}

.logistics-visual {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 46%),
    repeating-linear-gradient(45deg, rgba(229, 9, 20, 0.54) 0 2px, transparent 2px 38px),
    #111111;
}

.logistics-visual::before {
  background:
    radial-gradient(circle at 20% 72%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 50% 34%, var(--red) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 58%, var(--cyan) 0 5px, transparent 6px);
}

.decision-visual {
  background:
    linear-gradient(150deg, rgba(101, 212, 110, 0.42), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 46px),
    #0e1110;
}

.decision-visual::before {
  clip-path: polygon(12% 78%, 12% 52%, 24% 52%, 24% 78%, 33% 78%, 33% 38%, 45% 38%, 45% 78%, 54% 78%, 54% 24%, 66% 24%, 66% 78%, 75% 78%, 75% 46%, 87% 46%, 87% 78%);
  background: linear-gradient(180deg, rgba(101, 212, 110, 0.88), rgba(229, 9, 20, 0.08));
}

.project-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 130px 22px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.62) 58%, rgba(0, 0, 0, 0));
}

.project-kicker {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.18rem, 1.8vw, 1.65rem);
  line-height: 1.08;
}

.project-meta,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta {
  margin-top: 16px;
}

.project-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-actions {
  margin-top: 14px;
}

.detail-button {
  color: #ffffff;
}

.impact-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 20px;
}

.impact-row strong {
  color: var(--green);
  font-size: 3.2rem;
  line-height: 0.9;
}

.impact-row span {
  max-width: 130px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.85rem;
  line-height: 1.25;
}

.skill-stage {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--red);
  background:
    linear-gradient(145deg, rgba(229, 9, 20, 0.22), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.34)),
    #111111;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 18px);
  opacity: 0.22;
}

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

.skill-card.accent-cyan {
  border-top-color: var(--cyan);
  background:
    linear-gradient(145deg, rgba(57, 211, 199, 0.2), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.34)),
    #111111;
}

.skill-card.accent-amber {
  border-top-color: var(--amber);
  background:
    linear-gradient(145deg, rgba(244, 179, 74, 0.22), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.34)),
    #111111;
}

.skill-card.accent-green {
  border-top-color: var(--green);
  background:
    linear-gradient(145deg, rgba(101, 212, 110, 0.18), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.34)),
    #111111;
}

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

.skill-topline strong {
  color: rgba(255, 255, 255, 0.34);
  font-size: 2.45rem;
  font-weight: 900;
}

.skill-topline span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.26);
}

.skill-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.skill-card i {
  margin-top: 24px;
}

.tool-belt {
  display: grid;
  grid-template-columns: repeat(10, minmax(90px, 1fr));
  gap: 10px;
}

.tool-belt span {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.credential-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credential-grid article {
  min-height: 230px;
  padding: 22px;
}

.credential-grid h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    #111111;
}

.proof-grid strong {
  display: block;
  margin-bottom: 26px;
  color: var(--green);
  font-size: 2.6rem;
  line-height: 0.9;
}

blockquote {
  max-width: 940px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  grid-template-areas:
    "copy form"
    "actions form"
    "board form";
  gap: 22px 42px;
  align-items: start;
  min-height: 58vh;
  padding-bottom: 96px;
  background:
    linear-gradient(180deg, var(--bg), rgba(229, 9, 20, 0.18)),
    var(--bg);
}

.contact-copy {
  grid-area: copy;
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-copy p {
  max-width: 690px;
  font-size: 1.05rem;
}

.contact-actions {
  grid-area: actions;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 16px;
  color: #ffffff;
}

.availability-board {
  grid-area: board;
  max-width: 420px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--green);
  background:
    linear-gradient(145deg, rgba(101, 212, 110, 0.2), rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0.28)),
    rgba(12, 12, 12, 0.86);
  box-shadow: var(--shadow);
}

.availability-board span {
  display: block;
  margin-bottom: 52px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-board strong {
  display: block;
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.02;
}

.contact-form {
  grid-area: form;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--red);
  background:
    linear-gradient(145deg, rgba(229, 9, 20, 0.18), rgba(255, 255, 255, 0.04) 46%, rgba(0, 0, 0, 0.32)),
    #101010;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
  background: rgba(0, 0, 0, 0.36);
  color: #ffffff;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
}

.project-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #090909;
  color: var(--text);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

.project-modal[open] {
  animation: modalIn 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  animation: backdropIn 300ms ease;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.modal-open {
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-visual {
  min-height: 250px;
}

.modal-body {
  padding: 28px;
}

.modal-body h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.98;
}

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

.modal-grid article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.modal-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
}

@keyframes pulseWidth {
  0%,
  100% {
    transform: scaleX(0.92);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
  }
}

@media (max-width: 1180px) {
  .project-showcase,
  .kpi-grid,
  .skill-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-belt {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: center !important;
    background: rgba(5, 5, 5, 0.82) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 20px !important;
  }

  .nav {
    display: none;
  }

  .hero,
  .profile-strip,
  .story-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-areas:
      "copy"
      "form"
      "actions"
      "board";
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-content {
    order: 1;
  }

  .hero-right {
    order: 2;
  }

  .signal-panel {
    align-self: stretch;
  }

  .profile-matrix,
  .credential-grid,
  .proof-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .availability-board {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .cv-link {
    display: none;
  }

  h1 {
    font-size: clamp(2.0rem, 8vw, 3.0rem);
    line-height: 1.15;
  }

  .project-showcase,
  .kpi-grid,
  .skill-stage {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 24px !important;
  }

  .hero-stats div {
    min-height: 84px !important;
    padding: 12px 6px !important;
    text-align: center !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-stats strong {
    font-size: 1.35rem !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    display: block !important;
  }

  /* Prevent inner count and suffix spans from shrinking or wrapping */
  .hero-stats strong span {
    font-size: inherit !important;
    display: inline !important;
    line-height: inherit !important;
  }

  /* Legible style for the sub-labels */
  .hero-stats div > span {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    color: var(--muted) !important;
    display: block !important;
  }

  .panel-grid span[data-i18n-tooltip]::after {
    max-width: 140px !important;
    font-size: 0.7rem !important;
    padding: 8px 10px !important;
  }

  .project-card.is-wide {
    grid-column: auto;
  }

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

  .project-body {
    padding: 80px 18px 18px;
  }

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

  .contact-actions .contact-link,
  .contact-form .primary-action {
    width: 100%;
  }
}

/* ── Scroll Progress Bar ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan), var(--green));
  transition: width 60ms linear;
  pointer-events: none;
}

/* ── Active Nav Link ────────────────────────────── */
.nav a.is-active {
  color: #ffffff;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(0, 102, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 102, 255, 0.25);
}

/* ── Hamburger Menu ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.hamburger i {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 280ms ease, opacity 180ms ease;
}

.hamburger.is-open i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open i:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
}

/* ── Mobile Nav Overlay ─────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--red);
}

/* ── Scroll-to-Top Button ───────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(229, 9, 20, 0.72);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease, background 180ms ease;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.35);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: rgba(229, 9, 20, 1);
  box-shadow: 0 12px 44px rgba(229, 9, 20, 0.55);
}

/* ── Section Reveal Animations ──────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 800ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(4px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
  filter: blur(0);
}

/* Slide from left */
[data-reveal="slide-left"] {
  transform: translateX(-60px);
}

/* Slide from right */
[data-reveal="slide-right"] {
  transform: translateX(60px);
}

/* Scale up */
[data-reveal="scale"] {
  transform: scale(0.82);
}

/* Zoom + subtle rotate */
[data-reveal="zoom-rotate"] {
  transform: scale(0.75) rotate(-3deg);
}

/* Flip in */
[data-reveal="flip"] {
  transform: perspective(800px) rotateX(25deg);
  transform-origin: bottom center;
}

[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal-delay="5"] { transition-delay: 500ms; }
[data-reveal-delay="6"] { transition-delay: 600ms; }
[data-reveal-delay="7"] { transition-delay: 700ms; }
[data-reveal-delay="8"] { transition-delay: 800ms; }

/* ── Animated Project Cards ─────────────────────── */
.project-card[data-reveal] {
  transform: translateY(60px) scale(0.94);
}

.project-card[data-reveal].is-revealed {
  transform: translateY(0) scale(1);
}

/* ── Animated Tool Belt Items ───────────────────── */
.tool-belt span {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
              background 180ms ease;
}

.tool-belt span:hover {
  transform: translateY(-4px);
  background: rgba(229, 9, 20, 0.18);
  border-color: var(--red);
}

/* ── Animated Skill Cards ───────────────────────── */
.skill-card {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease,
              filter 220ms ease;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
  filter: brightness(1.1);
}

/* ── KPI Card hover ─────────────────────────────── */
.kpi-grid article {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease;
}

.kpi-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(57, 211, 199, 0.18);
}

/* ── Credential / Proof card hover ──────────────── */
.credential-grid article,
.proof-grid article {
  transition: transform 280ms ease, border-color 280ms ease;
}

.credential-grid article:hover,
.proof-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.4);
}

/* ── Hero entrance animation ────────────────────── */
.hero-content {
  animation: heroSlideIn 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-right {
  animation: heroFadeRight 1400ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(-40px); filter: blur(6px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(40px) scale(0.95); filter: blur(6px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}



/* ── Footer ─────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 48px clamp(20px, 5vw, 72px) 28px;
  background: linear-gradient(180deg, var(--bg), #0a0a0a);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand .brand {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-nav h4,
.footer-social h4 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  border-radius: 50%;
}

.footer-socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
}

@media (max-width: 620px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Chatbot Widget ─────────────────────────────── */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: 90px;
  z-index: 50;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #b8070f);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.45);
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: chatPulse 3s ease-in-out infinite;
}

.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 44px rgba(229, 9, 20, 0.6);
}

.chatbot-fab svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 280ms ease;
}

.chatbot-fab.is-open svg {
  transform: rotate(90deg) scale(0.9);
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(229, 9, 20, 0.45); }
  50% { box-shadow: 0 8px 32px rgba(229, 9, 20, 0.2), 0 0 0 12px rgba(229, 9, 20, 0.08); }
}

.chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 49;
  width: min(420px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chatbot-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  border-radius: 16px;
}

.chatbot-header,
.chatbot-messages,
.chat-suggestions,
.chatbot-input {
  position: relative;
  z-index: 1;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(229, 9, 20, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--amber));
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
}

.chatbot-header-info strong {
  display: block;
  font-size: 0.95rem;
}

.chatbot-header-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
}

.chatbot-header-info span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

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

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  max-height: 360px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  animation: msgIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--red), #b8070f);
  border-bottom-right-radius: 4px;
  color: #ffffff;
}

.chat-msg.bot .typing-dots {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}

.chat-msg.bot .typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: dotBounce 1.3s ease-in-out infinite;
}

.chat-msg.bot .typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.bot .typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.chat-suggestions button {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.chat-suggestions button:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: var(--red);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.chatbot-input input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 180ms ease;
}

.chatbot-input input:focus {
  border-color: var(--red);
}

.chatbot-input button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #ffffff;
  cursor: pointer;
  transition: background 180ms ease;
  flex-shrink: 0;
}

.chatbot-input button:hover {
  background: #ff1a26;
}

.chatbot-input button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 620px) {
  .chatbot-fab {
    right: 20px;
    bottom: 88px !important;
    width: 52px;
    height: 52px;
  }
  .chatbot-panel {
    right: 8px;
    bottom: 154px !important;
    width: calc(100vw - 16px);
  }
  .scroll-top {
    right: 20px;
    bottom: 154px !important;
  }
}

/* ==========================================================================
   HAMBURGER BUTTON & MOBILE SLIDE-OUT NAV
   ========================================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  z-index: 25;
  transition: all 200ms ease;
}

.hamburger:hover,
.hamburger.is-open {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 102, 255, 0.35);
  transform: scale(1.04);
}

.hamburger:active {
  transform: scale(0.96);
}

.hamburger i {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 300ms ease;
}

.hamburger.is-open i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open i:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 280px;
  height: 100vh;
  z-index: 22;
  background: rgba(8, 12, 24, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(0, 210, 255, 0.2);
  padding: 100px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

/* Cyber Backdrop Dimmer */
.mobile-nav::before {
  content: "";
  position: fixed;
  top: 0;
  right: 280px;
  width: calc(100vw - 280px);
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.mobile-nav.is-open::before {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 200ms ease;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: rgba(0, 102, 255, 0.2);
  color: #00d2ff;
  border-left: 3px solid #0066ff;
}

/* Responsive Grid & Touch Adjustments for Mobile */
@media (max-width: 900px) {
  .nav {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 12px 18px;
  }
  .top-actions {
    gap: 8px;
  }
  .lang-toggle {
    padding: 4px 8px;
    font-size: 0.76rem;
  }
  .hero-header-profile {
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
  }
  .profile-photo-wrap {
    width: 84px;
    height: 84px;
    min-width: 84px;
    border-width: 2px;
  }
  .hero-title-group h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.5rem);
    line-height: 1.15;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 10px 14px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .hero-header-profile {
    gap: 12px;
    margin-bottom: 16px;
  }
  .profile-photo-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
  .hero-title-group .eyebrow {
    font-size: 0.68rem;
  }
  .hero-title-group h1 {
    font-size: 1.45rem;
  }
}

/* ── CV Portal Embedded Modal ────────────────────── */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 20px;
}

.cv-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(16px);
}

.cv-modal-container {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: 90vh;
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 102, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-modal.is-open .cv-modal-container {
  transform: scale(1) translateY(0);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(22, 22, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--blue, #0066ff);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 200ms ease, transform 150ms ease;
}

.cv-download-btn:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

.cv-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}

.cv-print-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.cv-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}

.cv-close-btn:hover {
  background: rgba(229, 9, 20, 0.8);
  color: white;
}

.cv-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #050508;
  overflow: hidden;
}

.cv-image-scroll-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #08080a;
}

.cv-image-scroll-wrapper img {
  max-width: 860px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   PROFILE PHOTO PULSE ANIMATION
   ========================================================================== */
.profile-photo-wrap {
  animation: profilePulse 3s ease-in-out infinite;
}

@keyframes profilePulse {
  0%, 100% {
    box-shadow:
      0 0 28px rgba(0, 102, 255, 0.5),
      0 10px 30px rgba(0, 0, 0, 0.6),
      0 0 0 0 rgba(0, 210, 255, 0.0) !important;
  }
  50% {
    box-shadow:
      0 0 36px rgba(0, 102, 255, 0.7),
      0 10px 30px rgba(0, 0, 0, 0.6),
      0 0 0 10px rgba(0, 210, 255, 0.12) !important;
  }
}

/* ==========================================================================
   PANEL GRID INTERACTIVE TOOLTIPS
   ========================================================================== */
.panel-grid span[data-i18n-tooltip] {
  position: relative;
  cursor: pointer;
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.panel-grid span[data-i18n-tooltip]:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.panel-grid span[data-i18n-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  background: rgba(8, 12, 22, 0.96);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 210, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
  z-index: 30;
}

/* Tooltip arrow */
.panel-grid span[data-i18n-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(8, 12, 22, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease, visibility 250ms ease;
  z-index: 31;
}

.panel-grid span[data-i18n-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.panel-grid span[data-i18n-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   ENHANCED HERO BUTTON HOVER EFFECTS
   ========================================================================== */
.primary-action {
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 300ms ease, background 300ms ease;
}

.primary-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 210, 255, 0.1));
  opacity: 0;
  transition: opacity 300ms ease;
}

.primary-action:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 56px rgba(255, 255, 255, 0.18), 0 0 20px rgba(0, 102, 255, 0.15);
}

.primary-action:hover::before {
  opacity: 1;
}

.secondary-action {
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 300ms ease, border-color 300ms ease, background 300ms ease;
}

.secondary-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 210, 255, 0.08));
  opacity: 0;
  transition: opacity 300ms ease;
}

.secondary-action:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 14px 40px rgba(0, 102, 255, 0.2), 0 0 16px rgba(0, 210, 255, 0.1);
}

.secondary-action:hover::before {
  opacity: 1;
}

/* ==========================================================================
   HERO STAT COUNTER ENTRANCE ANIMATION
   ========================================================================== */
.hero-stats div {
  animation: statSlideIn 600ms cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-stats div:nth-child(1) { animation-delay: 200ms; }
.hero-stats div:nth-child(2) { animation-delay: 400ms; }
.hero-stats div:nth-child(3) { animation-delay: 600ms; }

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

/* Contact Page Rows */
.contact-row-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 200ms ease;
  font-weight: 600;
  min-width: 80px;
}

.contact-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 480px) {
  .contact-row-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .contact-copy-btn {
    width: 100%;
    padding: 8px 12px;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 20px 20px 0 0;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  }

  .mobile-bottom-bar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: color 250ms ease, transform 250ms ease;
    gap: 6px;
    position: relative;
  }

  .mobile-bottom-bar .tab-item .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 250ms ease;
    opacity: 0.75;
  }

  .mobile-bottom-bar .tab-item:active {
    transform: scale(0.9);
  }

  .mobile-bottom-bar .tab-item.active {
    color: var(--cyan);
  }

  .mobile-bottom-bar .tab-item.active .tab-icon {
    transform: translateY(-2px);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
  }

  .mobile-bottom-bar .tab-item.active::after {
    content: "";
    position: absolute;
    top: 0;
    width: 32px;
    height: 3px;
    background: var(--cyan);
    box-shadow: 0 2px 10px rgba(0, 210, 255, 0.8);
    border-radius: 0 0 4px 4px;
  }

  /* Shift chatbot button and scroll-to-top button above the bottom bar */
  .chatbot-fab {
    bottom: 88px !important;
  }
  .scroll-top {
    bottom: 88px !important;
    right: 84px !important;
  }
  .chatbot-panel {
    bottom: 154px !important;
  }

  /* Add padding to body to prevent footer overlapping */
  body {
    padding-bottom: 84px !important;
  }
}

/* ==========================================================================
   INTERACTIVE AND AESTHETIC ENHANCEMENTS STYLING
   ========================================================================== */

/* ── Blueprint Grid & Flashlight Mask ── */
.blueprint-grid {
  position: fixed;
  inset: 0;
  z-index: 9998; /* On top of content cards, below transition overlay */
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(0, 102, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle 120px at var(--mouse-x, 0px) var(--mouse-y, 0px), black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 120px at var(--mouse-x, 0px) var(--mouse-y, 0px), black 20%, transparent 100%);
  transition: opacity 0.3s ease;
}

/* ── Page Transition Overlay ── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 250ms ease-in-out;
}
.page-transition-overlay.is-hidden {
  opacity: 0;
}

/* ── Capybara Easter Eggs ── */
.brand {
  position: relative;
}

.brand-capybara {
  position: absolute;
}

/* Inner wrapper handles the scroll-based rotation and transition styling */
.brand-capybara-inner {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 100ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Speech bubble container with CSS variables for edge shifting */
.capy-bubble {
  position: absolute;
  top: 30px; /* Render below capybara */
  bottom: auto;
  left: 50%;
  --bubble-shift-x: 0px;
  --bubble-arrow-x: 0px;
  --capy-bubble-scale: 0;
  transform: translateX(calc(-50% + var(--bubble-shift-x, 0px))) scale(var(--capy-bubble-scale, 0));
  transform-origin: calc(50% - var(--bubble-shift-x, 0px)) top;
  background: var(--panel);
  border: 1px solid var(--cyan);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0;
  transition: transform 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 200ms ease;
}

.capy-bubble::after {
  content: "";
  position: absolute;
  bottom: 100%; /* Move arrow to top of bubble pointing up */
  top: auto;
  left: 50%;
  transform: translateX(calc(-50% + var(--bubble-arrow-x, 0px)));
  border: 6px solid transparent;
  border-bottom-color: var(--cyan); /* Bottom border makes it point up */
  transition: transform 150ms ease;
}

.brand-capybara:hover .capy-bubble {
  --capy-bubble-scale: 1;
  opacity: 1;
}

.capy-spin-active .brand-capybara-inner {
  animation: capySpin 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes capySpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Gantt Chart (Interactive Roadmap) ── */
.gantt-chart-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.gantt-timeline-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}



.gantt-header-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
}

.gantt-timeline-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.gantt-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}



.gantt-row:last-child {
  border-bottom: none;
}

.gantt-row-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  padding-right: 12px;
}

.gantt-bar-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 32px;
  position: relative;
}

.gantt-bar {
  grid-column: var(--start, 1) / span var(--span, 1);
  background: var(--bar-color, var(--cyan));
  border-radius: 8px;
  height: 100%;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
  display: flex;
  align-items: center;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gantt-bar:hover, .gantt-bar.is-active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--bar-color-glow, rgba(0, 210, 255, 0.4));
  filter: brightness(1.1);
}

.gantt-bar-text {
  color: #040814;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.gantt-details-panel {
  background: rgba(18, 18, 24, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
  transition: all 0.3s ease;
  display: none;
}



.gantt-details-panel.is-visible {
  display: block;
  animation: slideDownIn 0.3s ease forwards;
}

/* ── OEE / Takt Gauge Chart ── */
.oee-gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.oee-gauge {
  position: relative;
  width: 140px;
  height: 140px;
}

.oee-gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.oee-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8px;
}



.oee-gauge-fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8px;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.oee-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: white;
}



.oee-gauge-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── Scroll-Linked Vertical Timeline ── */
.vertical-timeline-container {
  position: relative;
  padding-left: 45px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 24px;
}

.v-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: 1;
}



.v-timeline-progress {
  position: absolute;
  top: 0;
  left: 11px;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--blue) 100%);
  border-radius: 2px;
  z-index: 2;
  height: 0%;
  transition: height 0.1s ease-out;
  box-shadow: 0 0 10px var(--cyan);
}

.v-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.v-timeline-dot {
  position: absolute;
  left: -45px;
  top: 24px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(3px);
}



.v-timeline-item.is-active .v-timeline-dot {
  background: var(--cyan);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--cyan);
  transform: translateX(3px) scale(1.25);
}

.v-timeline-content {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0.85;
}

.v-timeline-item.is-active .v-timeline-content {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--cyan);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.15);
}

.v-timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.v-timeline-date {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.v-timeline-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.v-timeline-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin: 0 0 10px;
  transition: color 0.3s ease;
}



.v-timeline-item.is-active .v-timeline-title {
  color: var(--cyan);
}

.v-timeline-copy {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
}

