body.portfolio {
  overflow-x: hidden;
  overflow-y: auto;
}

/* ─── NAV PILL ─── */
.portfolio-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  animation: navSlideUp 0.6s ease-out 1.5s forwards;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
[data-theme="light"] .portfolio-nav {
  background: rgba(240, 240, 240, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.portfolio-nav.nav-hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0 !important;
}
.portfolio-nav .nav-brand {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-decoration: none;
  padding-right: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
[data-theme="light"] .portfolio-nav .nav-brand {
  border-right-color: rgba(0, 0, 0, 0.15);
}
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  opacity: 0.9;
}
.portfolio-nav a:not(.nav-brand) {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}
.portfolio-nav a:not(.nav-brand):hover,
.portfolio-nav a:not(.nav-brand).active {
  color: var(--fg);
  text-shadow: 0 0 6px var(--glow);
}

/* ─── BACKGROUND LOGO — MOTION DESIGN (GPU-optimized) ─── */
.bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 0;
  will-change: auto;
}
.bg-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}
[data-theme="light"] .bg-logo::after {
  background: rgba(255, 255, 255, 0.4);
}
.bg-logo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  animation: bgLogoRotate 90s linear infinite;
  will-change: transform;
}
.bg-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: bgLogoBreathe 8s ease-in-out infinite;
  will-change: transform, opacity;
}
/* Dark mode: white logo, static glow via filter, animate only transform+opacity */
.bg-logo-dark {
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.25)) drop-shadow(0 0 80px rgba(255,255,255,0.1)) blur(0.5px);
  opacity: 0.15;
}
.bg-logo-light {
  display: none;
}
/* Light mode: black logo */
[data-theme="light"] .bg-logo-dark {
  display: none;
}
[data-theme="light"] .bg-logo-light {
  display: block;
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.2)) drop-shadow(0 0 80px rgba(0,0,0,0.08)) blur(0.5px);
  opacity: 0.12;
}

/* Scanline — lightweight, no blur/box-shadow */
.bg-logo-scanline {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: bgScanline 4s ease-in-out infinite;
  will-change: transform, opacity;
}
[data-theme="light"] .bg-logo-scanline {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.3), transparent);
}

/* Rings — opacity-only animation, no box-shadow */
.bg-logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: bgRingPulse 6s ease-in-out infinite;
  will-change: opacity;
}
.bg-logo-ring--2 {
  width: 90%;
  height: 90%;
  border-color: rgba(255,255,255,0.06);
  animation-delay: -3s;
  animation-duration: 8s;
}
[data-theme="light"] .bg-logo-ring {
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .bg-logo-ring--2 {
  border-color: rgba(0,0,0,0.04);
}

/* Particles — simple opacity, no scale */
.bg-logo-particles {
  position: absolute;
  inset: 0;
  animation: bgLogoRotate 60s linear infinite reverse;
  will-change: transform;
}
.bg-logo-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: bgParticlePulse 3s ease-in-out infinite;
  will-change: opacity;
}
[data-theme="light"] .bg-logo-particles span {
  background: rgba(0,0,0,0.2);
}
.bg-logo-particles span:nth-child(1) { top: 8%; left: 50%; animation-delay: 0s; }
.bg-logo-particles span:nth-child(2) { top: 25%; left: 82%; animation-delay: -0.5s; }
.bg-logo-particles span:nth-child(3) { top: 50%; left: 92%; animation-delay: -1s; }
.bg-logo-particles span:nth-child(4) { top: 75%; left: 80%; animation-delay: -1.5s; }
.bg-logo-particles span:nth-child(5) { top: 92%; left: 48%; animation-delay: -2s; }
.bg-logo-particles span:nth-child(6) { top: 70%; left: 15%; animation-delay: -2.5s; }

/* Keyframes — GPU-friendly: only transform and opacity */
@keyframes bgLogoBreathe {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.03); opacity: 0.6; }
}
@keyframes bgLogoRotate {
  to { transform: rotate(360deg); }
}
@keyframes bgScanline {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(540px); opacity: 0; }
}
@keyframes bgRingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}
@keyframes bgParticlePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}
/* Light mode breathe — same keyframes, filter stays static */
[data-theme="light"] .bg-logo-inner {
  animation: bgLogoRotate 90s linear infinite;
}

/* ─── CONTENT ─── */
.portfolio-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

/* ─── SECTION BASE ─── */
.section {
  margin-bottom: 6rem;
}
.section-label {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'VT323', monospace;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.section-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
  margin-bottom: 2rem;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.section.visible .section-line {
  width: 80px;
}
.subsection-title {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2.5rem 0 1.2rem;
  text-transform: uppercase;
}

/* ─── HERO ─── */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 4rem;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text {
  flex: 1;
}
.hero-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255,255,255,0.5) 10%,
    rgba(255,255,255,0.7) 15%,
    rgba(255,255,255,0.5) 20%,
    transparent 30%,
    transparent 100%
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  animation: photoOrbit 8s linear infinite;
  filter: blur(1px);
  will-change: transform;
}
.hero-photo:hover::before {
  filter: blur(1px);
  opacity: 0.8;
}
@keyframes photoOrbit {
  to { transform: rotate(360deg); }
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 50%;
  filter: grayscale(40%) contrast(1.1);
  transition: filter 0.4s;
}
.hero-photo:hover img {
  filter: grayscale(0%) contrast(1);
}
.hero-greeting {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: var(--fg);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: bootLine 0.6s ease-out 0.3s forwards;
}
.hero-name {
  font-family: 'VT323', monospace;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--fg);
  opacity: 0;
  animation: glitchIn 0.8s ease-out 0.6s forwards;
}
.hero-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  color: var(--fg);
  letter-spacing: 0.08em;
  margin-top: 1rem;
  line-height: 1.8;
  max-width: 550px;
  opacity: 0;
  animation: bootLine 0.6s ease-out 1s forwards;
}
.hero-cta {
  margin-top: 2.5rem;
  opacity: 0;
  animation: bootLine 0.6s ease-out 1.3s forwards;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-cta a {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s, text-shadow 0.2s, box-shadow 0.2s;
}
.cta-primary:hover {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 20px var(--glow);
}
.cta-secondary {
  border-color: var(--muted) !important;
  color: var(--muted) !important;
}
.cta-secondary:hover {
  border-color: var(--fg) !important;
  color: var(--fg) !important;
}

/* ─── ABOUT ─── */
.about-text {
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.9;
}
.about-text p { margin-bottom: 1rem; }
.about-assessfirst {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid var(--accent, #00ff88);
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  opacity: 0.85;
}
.about-assessfirst a {
  color: var(--accent, #00ff88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.about-assessfirst a:hover {
  border-bottom-color: var(--accent, #00ff88);
}

/* ─── VALUES ─── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.value-item {
  text-align: center;
  border: 1px solid var(--muted);
  padding: 1.4rem 0.8rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.value-item:hover {
  border-color: var(--fg);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-4px);
}
.value-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--fg);
  opacity: 0.8;
}
.value-icon svg {
  display: inline-block;
  vertical-align: middle;
}
.value-label {
  font-family: 'VT323', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--fg);
}

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.skill-card {
  border: 1px solid var(--muted);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
  transition: left 0.6s ease;
}
.skill-card:hover::before {
  left: 100%;
}
.skill-card:hover {
  border-color: var(--fg);
  box-shadow: 0 0 15px var(--glow);
  transform: translateY(-3px);
}
.skill-card-title {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  opacity: 0.7;
  border: 1px solid var(--muted);
  padding: 0.2rem 0.5rem;
  transition: opacity 0.2s, border-color 0.2s, text-shadow 0.2s;
}
.skill-card:hover .skill-tag {
  opacity: 1;
  border-color: var(--fg);
  text-shadow: 0 0 4px var(--glow);
}

/* ─── INFRASTRUCTURE SECTION ─── */
.infra-intro {
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Architecture Diagram */
.archi-diagram {
  border: 1px solid var(--muted);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.archi-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.archi-layers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.archi-layer {
  width: 100%;
  border: 1px solid var(--muted);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.archi-layer:hover {
  border-color: var(--fg);
  box-shadow: 0 0 10px var(--glow);
}
.archi-layer-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, #00ff88);
  min-width: 100px;
  flex-shrink: 0;
}
.archi-layer-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.archi-node {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--muted);
  color: var(--fg);
  white-space: nowrap;
}
.archi-node--small {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
}
.archi-arrow {
  color: var(--muted);
  font-size: 0.7rem;
}
.archi-connector {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.15rem 0;
  text-align: center;
}
.archi-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.archi-layer--edge { border-color: rgba(0, 255, 136, 0.3); }
.archi-layer--proxy { border-color: rgba(0, 200, 255, 0.3); }
.archi-layer--orchestration { border-color: rgba(255, 200, 0, 0.3); }
.archi-layer--services { border-color: rgba(200, 100, 255, 0.3); }
.archi-layer--security { border-color: rgba(255, 60, 60, 0.3); }

/* Stagger animation on diagram layers */
.visible .archi-layer { opacity: 0; animation: archiLayerIn 0.5s ease-out forwards; }
.visible .archi-layer:nth-child(1) { animation-delay: 0.1s; }
.visible .archi-layer:nth-child(3) { animation-delay: 0.25s; }
.visible .archi-layer:nth-child(5) { animation-delay: 0.4s; }
.visible .archi-layer:nth-child(7) { animation-delay: 0.55s; }
.visible .archi-layer:nth-child(9) { animation-delay: 0.7s; }
.visible .archi-connector { opacity: 0; animation: archiLayerIn 0.3s ease-out forwards; }
.visible .archi-connector:nth-child(2) { animation-delay: 0.18s; }
.visible .archi-connector:nth-child(4) { animation-delay: 0.33s; }
.visible .archi-connector:nth-child(6) { animation-delay: 0.48s; }
.visible .archi-connector:nth-child(8) { animation-delay: 0.63s; }
@keyframes archiLayerIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Glow pulse on metric values */
.server-metric--green {
  animation: metricPulse 3s ease-in-out infinite;
}
@keyframes metricPulse {
  0%, 100% { text-shadow: 0 0 4px rgba(0, 255, 136, 0.3); }
  50% { text-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 0 25px rgba(0, 255, 136, 0.2); }
}
[data-theme="light"] .server-metric--green {
  animation: metricPulseLight 3s ease-in-out infinite;
}
@keyframes metricPulseLight {
  0%, 100% { text-shadow: 0 0 4px rgba(0, 153, 77, 0.2); }
  50% { text-shadow: 0 0 10px rgba(0, 153, 77, 0.4), 0 0 20px rgba(0, 153, 77, 0.15); }
}

/* Stagger on server metrics */
.visible .server-metric { opacity: 0; animation: metricFadeIn 0.4s ease-out forwards; }
.visible .server-metric:nth-child(1) { animation-delay: 0.1s; }
.visible .server-metric:nth-child(2) { animation-delay: 0.2s; }
.visible .server-metric:nth-child(3) { animation-delay: 0.3s; }
.visible .server-metric:nth-child(4) { animation-delay: 0.4s; }
@keyframes metricFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger on approach items */
.visible .infra-approach-item { opacity: 0; animation: approachSlideIn 0.5s ease-out forwards; }
.visible .infra-approach-item:nth-child(1) { animation-delay: 0.1s; }
.visible .infra-approach-item:nth-child(2) { animation-delay: 0.2s; }
.visible .infra-approach-item:nth-child(3) { animation-delay: 0.3s; }
.visible .infra-approach-item:nth-child(4) { animation-delay: 0.4s; }
.visible .infra-approach-item:nth-child(5) { animation-delay: 0.5s; }
.visible .infra-approach-item:nth-child(6) { animation-delay: 0.6s; }
@keyframes approachSlideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stagger on security items */
.visible .security-item { opacity: 0; animation: secItemIn 0.3s ease-out forwards; }
.visible .security-column:nth-child(1) .security-item:nth-child(2) { animation-delay: 0.05s; }
.visible .security-column:nth-child(1) .security-item:nth-child(3) { animation-delay: 0.1s; }
.visible .security-column:nth-child(1) .security-item:nth-child(4) { animation-delay: 0.15s; }
.visible .security-column:nth-child(1) .security-item:nth-child(5) { animation-delay: 0.2s; }
.visible .security-column:nth-child(1) .security-item:nth-child(6) { animation-delay: 0.25s; }
.visible .security-column:nth-child(1) .security-item:nth-child(7) { animation-delay: 0.3s; }
.visible .security-column:nth-child(2) .security-item { animation-delay: 0.15s; }
.visible .security-column:nth-child(3) .security-item { animation-delay: 0.3s; }
@keyframes secItemIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Server Metrics */
.server-metrics {
  border: 1px solid var(--muted);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.server-metrics-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.server-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.server-metrics-perf {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--muted);
}
.server-metric {
  text-align: center;
}
.server-metric-value {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}
.server-metric--green {
  color: #00ff88;
}
[data-theme="light"] .server-metric--green {
  color: #00994d;
}
.server-metric-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Security Posture */
.security-posture {
  border: 1px solid var(--muted);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.security-posture-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.security-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.security-column-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--accent, #00ff88);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--muted);
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--fg);
  opacity: 0.85;
}
.security-icon {
  color: var(--accent, #00ff88);
  font-size: 0.4rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Approach */
.infra-approach {
  border: 1px solid var(--muted);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.infra-approach-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.infra-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.infra-approach-item {
  padding: 0.8rem;
  border-left: 2px solid var(--accent, #00ff88);
}
.infra-approach-heading {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--fg);
}
.infra-approach-text {
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.8;
}

/* ─── PARTNER BADGES ─── */
.infra-partner-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.infra-partner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
  min-height: 0;
}
[data-theme="light"] .infra-partner-badge {
  background: rgba(0,0,0,0.02);
}
.infra-partner-badge:hover {
  border-color: var(--fg);
  box-shadow: 0 0 12px var(--glow);
}
.partner-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.partner-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.partner-logo:hover {
  opacity: 1;
}
.partner-logo--small {
  height: 24px;
  opacity: 0.7;
}
/* Wide badge (panoramic SVG) */
.partner-logo--wide {
  height: auto;
  width: 100%;
  max-height: 40px;
  object-fit: contain;
  border-radius: 4px;
}
/* Proton — theme switching */
.partner-logo--proton-light {
  display: none;
}
[data-theme="light"] .partner-logo--proton-dark {
  display: none;
}
[data-theme="light"] .partner-logo--proton-light {
  display: block;
}

/* ─── INFRA STATS ─── */
.infra-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.infra-stat {
  text-align: center;
  border: 1px solid var(--muted);
  padding: 1.2rem 0.8rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.infra-stat:hover {
  border-color: var(--fg);
  box-shadow: 0 0 15px var(--glow);
  transform: translateY(-2px);
}
.infra-stat-number {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  letter-spacing: 0.05em;
}
.infra-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── TECH MARQUEE ─── */
.tech-marquee {
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
[data-theme="light"] .tech-marquee {
  border-top-color: rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-content {
  display: flex;
  gap: 1.2rem;
  padding-right: 1.2rem;
  flex-shrink: 0;
}
.marquee-content span {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.tech-marquee:hover .marquee-track {
  animation-play-state: paused;
}
.tech-marquee:hover .marquee-content span:not(:empty) {
  color: var(--fg);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── PROJECTS ─── */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-item {
  border: 1px solid var(--muted);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.project-item:hover {
  border-color: var(--fg);
  box-shadow: 0 0 15px var(--glow);
  transform: translateY(-3px);
}
.project-featured {
  grid-column: 1 / -1;
  border-color: var(--dim);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .project-featured {
  background: rgba(0,0,0,0.02);
}
.project-featured:hover {
  box-shadow: 0 0 25px var(--glow);
}
.project-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'VT323', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  background: var(--fg);
  color: var(--bg);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}
.project-name {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.project-featured .project-name {
  font-size: 1.3rem;
}
.project-stars {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
}
.project-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--fg);
  opacity: 0.85;
  margin-bottom: 0.8rem;
}
.project-quote {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--dim);
  line-height: 1.6;
}
.project-doc-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--dim);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.project-doc-link:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.03);
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.project-tech span {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--fg);
  opacity: 0.6;
  border: 1px solid var(--muted);
  padding: 0.15rem 0.4rem;
  transition: opacity 0.2s, border-color 0.2s;
}
.project-item:hover .project-tech span {
  opacity: 1;
  border-color: var(--fg);
}

/* ─── EXPERIENCE TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--muted);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--fg);
  background: var(--bg);
  transition: box-shadow 0.3s, background 0.3s;
}
.timeline-item:hover::before {
  box-shadow: 0 0 10px var(--glow);
  background: var(--fg);
}
.timeline-date {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.timeline-role {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.timeline-company {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.timeline-desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--fg);
  opacity: 0.85;
}

/* ─── REFERENCES ─── */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.reference-item {
  border: 1px solid var(--muted);
  padding: 1rem 1.2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.reference-item:hover {
  border-color: var(--fg);
  box-shadow: 0 0 10px var(--glow);
}
.reference-name {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.reference-scope {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.5;
}
.references-more {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.8rem;
  font-style: italic;
}

/* ─── CERTIFICATIONS ─── */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.cert-item {
  border: 1px solid var(--muted);
  padding: 0.8rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cert-item:hover {
  border-color: var(--fg);
  box-shadow: 0 0 8px var(--glow);
}
.cert-name {
  font-family: 'VT323', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.cert-detail {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
}

/* ─── CONTACT ─── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border: 1px solid var(--muted);
  transition: border-color 0.2s, text-shadow 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-link:hover {
  border-color: var(--fg);
  text-shadow: 0 0 4px var(--glow);
  box-shadow: 0 0 12px var(--glow);
}
.contact-link-arrow {
  font-family: 'VT323', monospace;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.contact-link:hover .contact-link-arrow {
  color: var(--fg);
  transform: translateX(6px);
}

/* ─── SKILL HIGHLIGHT ─── */
.skill-highlight {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}

/* ─── GLITCH TITLE ─── */
.glitch-title {
  position: relative;
}
.glitch-title.glitching::before,
.glitch-title.glitching::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch-title.glitching::before {
  animation: glitchTop 0.15s linear;
  clip-path: inset(0 0 60% 0);
  color: var(--fg);
  text-shadow: -2px 0 rgba(255, 0, 0, 0.5);
}
.glitch-title.glitching::after {
  animation: glitchBottom 0.15s linear;
  clip-path: inset(60% 0 0 0);
  color: var(--fg);
  text-shadow: 2px 0 rgba(0, 255, 0, 0.5);
}
@keyframes glitchTop {
  0% { transform: translate(0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
  100% { transform: translate(0); }
}
@keyframes glitchBottom {
  0% { transform: translate(0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-3px, 1px); }
  75% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

/* ─── HOVER GLITCH ─── */
.glitch-title {
  cursor: default;
}
.glitch-title:hover {
  animation: hoverGlitch 0.3s steps(2) forwards;
  text-shadow: 1px 0 rgba(255,0,0,0.3), -1px 0 rgba(0,255,255,0.3);
}
.glitch-title:hover::before,
.glitch-title:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.glitch-title:hover::before {
  animation: glitchTop 0.2s steps(3) infinite;
  clip-path: inset(0 0 65% 0);
  text-shadow: -2px 0 rgba(255,0,0,0.4);
}
.glitch-title:hover::after {
  animation: glitchBottom 0.2s steps(3) infinite;
  clip-path: inset(65% 0 0 0);
  text-shadow: 2px 0 rgba(0,255,255,0.4);
}
@keyframes hoverGlitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}
.portfolio-nav a:not(.nav-brand):hover {
  animation: hoverGlitch 0.25s steps(2);
  text-shadow: 0 0 6px var(--glow), 1px 0 rgba(255,0,0,0.2), -1px 0 rgba(0,255,255,0.2);
}
.subsection-title:hover {
  animation: hoverGlitch 0.3s steps(2);
  text-shadow: 1px 0 rgba(255,0,0,0.2), -1px 0 rgba(0,255,255,0.2);
}

/* ─── LINES COUNTER LOOP ─── */
.lines-counter {
  font-variant-numeric: tabular-nums;
}

/* ─── ANIMATIONS ─── */
@keyframes bootLine {
  0% { opacity: 0; transform: translateY(8px); filter: blur(2px); }
  60% { opacity: 1; transform: translateY(0); filter: blur(0); }
  75% { text-shadow: 0 0 8px var(--glow); }
  100% { opacity: 1; transform: translateY(0); text-shadow: none; }
}
@keyframes glitchIn {
  0% { opacity: 0; transform: translate(-4px, 4px); text-shadow: 3px -3px 0 rgba(255,0,0,0.5), -3px 3px 0 rgba(0,255,0,0.5); }
  20% { opacity: 1; transform: translate(2px, -1px); text-shadow: -2px 2px 0 rgba(255,0,0,0.3), 2px -2px 0 rgba(0,255,0,0.3); }
  40% { transform: translate(-1px, 1px); text-shadow: 1px -1px 0 rgba(255,0,0,0.15); }
  60% { transform: translate(0); text-shadow: 0 0 20px var(--glow); }
  80% { text-shadow: 0 0 8px var(--glow); }
  100% { opacity: 1; transform: translate(0); text-shadow: none; }
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── STAGGER ─── */
.reveal.visible .skill-card,
.reveal.visible .project-item,
.reveal.visible .value-item,
.reveal.visible .infra-stat,
.reveal.visible .contact-link,
.reveal.visible .timeline-item,
.reveal.visible .reference-item,
.reveal-left.visible .skill-card,
.reveal-left.visible .project-item,
.reveal-left.visible .timeline-item,
.reveal-right.visible .skill-card,
.reveal-right.visible .project-item,
.reveal-scale.visible .skill-card,
.reveal-scale.visible .value-item,
.reveal-scale.visible .reference-item,
.reveal-scale.visible .contact-link,
.reveal-scale.visible .cert-item {
  opacity: 0;
  animation: staggerIn 0.5s ease-out forwards;
}
.visible :nth-child(1) { animation-delay: 0.1s; }
.visible :nth-child(2) { animation-delay: 0.15s; }
.visible :nth-child(3) { animation-delay: 0.2s; }
.visible :nth-child(4) { animation-delay: 0.25s; }
.visible :nth-child(5) { animation-delay: 0.3s; }
.visible :nth-child(6) { animation-delay: 0.35s; }
.visible :nth-child(7) { animation-delay: 0.4s; }
.visible :nth-child(8) { animation-delay: 0.45s; }
.visible :nth-child(9) { animation-delay: 0.5s; }

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes navSlideUpMobile {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
/* ─── TABLET ─── */
@media (max-width: 768px) {
  .hero-top {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .hero-photo {
    width: 140px;
    height: 140px;
  }
  .hero-title {
    max-width: 100%;
  }
  .hero-cta {
    justify-content: center;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-list {
    grid-template-columns: 1fr;
  }
  .project-featured {
    grid-column: 1;
  }
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  .infra-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bg-logo {
    width: 350px;
    height: 350px;
  }
  .bg-logo::after {
    display: none;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .portfolio-content {
    padding: 2rem 1rem 5rem;
  }

  /* Nav pill — compact, safe area */
  .portfolio-nav {
    bottom: 0.8rem;
    left: 0.5rem;
    right: 0.5rem;
    transform: none;
    width: auto;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    justify-content: center;
    animation: navSlideUpMobile 0.6s ease-out 1.5s forwards;
  }
  .portfolio-nav .nav-brand {
    font-size: 0.9rem;
    padding-right: 0.4rem;
    margin-right: 0.2rem;
  }
  .nav-logo {
    width: 22px;
    height: 22px;
  }
  .portfolio-nav a:not(.nav-brand) {
    font-size: 0.45rem;
    letter-spacing: 0.04em;
  }
  .portfolio-nav.nav-hidden {
    transform: translateY(100px);
  }

  /* Hero */
  .hero {
    padding-top: 3rem;
  }
  .hero-photo {
    width: 120px;
    height: 120px;
  }
  .hero-name {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-title {
    font-size: 0.65rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  /* Sections */
  .section {
    padding: 2.5rem 0;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .about-text p {
    font-size: 0.65rem;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .value-item {
    padding: 0.6rem 0.4rem;
  }
  .value-icon svg {
    width: 22px;
    height: 22px;
  }
  .value-label {
    font-size: 0.5rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    padding: 0.8rem;
  }
  .skill-card-title {
    font-size: 0.7rem;
  }
  .skill-tag {
    font-size: 0.48rem;
    padding: 0.15rem 0.35rem;
  }

  /* Infrastructure */
  .archi-diagram { padding: 1rem; }
  .archi-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
  }
  .archi-layer-label { min-width: auto; }
  .archi-layer-content { gap: 0.3rem; }
  .archi-node { font-size: 0.7rem; padding: 0.15rem 0.4rem; }
  .archi-node--small { font-size: 0.58rem; }
  .archi-arrow { font-size: 0.55rem; }
  .server-metrics { padding: 1rem; }
  .server-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .server-metric-value { font-size: 1.1rem; }
  .infra-partner-badges { grid-template-columns: 1fr; }
  .infra-approach { padding: 1rem; }
  .infra-approach-grid { grid-template-columns: 1fr; gap: 1rem; }
  .security-posture { padding: 1rem; }
  .security-columns { grid-template-columns: 1fr; gap: 1rem; }
  .security-item { font-size: 0.55rem; }

  /* Projects */
  .infra-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .infra-stat-number {
    font-size: 1.3rem;
  }
  .infra-stat-label {
    font-size: 0.48rem;
  }
  .tech-marquee {
    margin-bottom: 1.5rem;
  }
  .marquee-content span {
    font-size: 0.55rem;
  }
  .project-desc {
    font-size: 0.58rem;
  }
  .project-tech span {
    font-size: 0.45rem;
  }
  .project-quote {
    font-size: 0.52rem;
  }
  .project-doc-link {
    font-size: 0.55rem;
  }

  /* Experience */
  .timeline-date {
    font-size: 0.55rem;
  }
  .timeline-role {
    font-size: 0.75rem;
  }
  .timeline-desc {
    font-size: 0.58rem;
  }
  .references-grid {
    grid-template-columns: 1fr;
  }
  .reference-name {
    font-size: 0.65rem;
  }
  .reference-scope {
    font-size: 0.5rem;
  }
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-link {
    padding: 0.8rem 1rem;
    font-size: 0.65rem;
  }

  /* Background logo — smaller on mobile, keep glow */
  .bg-logo {
    width: 300px;
    height: 300px;
  }
  .bg-logo::after {
    display: none;
  }
  .bg-logo-inner {
    animation: none;
  }
  .bg-logo img {
    animation: bgLogoBreathe 8s ease-in-out infinite;
  }
  .bg-logo-dark {
    opacity: 0.2;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)) blur(0.5px);
  }
  [data-theme="light"] .bg-logo-light {
    opacity: 0.14;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.2)) blur(0.5px);
  }

  /* Disable orbital animations on mobile */
  .bg-logo-particles,
  .bg-logo-ring,
  .bg-logo-scanline {
    display: none;
  }

  /* CRITICAL: disable reveal animations on mobile — show everything */
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal .skill-card,
  .reveal .project-item,
  .reveal .value-item,
  .reveal .infra-stat,
  .reveal .contact-link,
  .reveal .timeline-item,
  .reveal .reference-item,
  .reveal-left .project-item,
  .reveal-left .timeline-item,
  .reveal-right .project-item,
  .reveal-scale .value-item,
  .reveal-scale .reference-item,
  .reveal-scale .contact-link,
  .reveal-scale .cert-item,
  .archi-layer,
  .archi-connector,
  .server-metric,
  .infra-approach-item,
  .security-item {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
