/* ═════════════════════════════════════════════════════════════
   TAPAN BINDHANI — HYPER-MODERN BENTO & SPOTLIGHT PORTFOLIO
   Design Inspiration: Linear.app, Vercel, Stripe, Raycast
═════════════════════════════════════════════════════════════ */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Color Palette — Slate Dark */
  --bg: #07090e;
  --bg-subtle: #0d111a;
  --bg-card: rgba(16, 22, 34, 0.65);
  --bg-card-hover: rgba(22, 30, 46, 0.85);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 58, 237, 0.5);
  --border-light: rgba(255, 255, 255, 0.14);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --emerald: #10b981;
  --amber: #f59e0b;
  
  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --gradient-accent: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 50px rgba(124, 58, 237, 0.25);
  --shadow-cyan: 0 0 40px rgba(6, 182, 212, 0.2);
  
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(124, 58, 237, 0.4);
  --border-light: rgba(0, 0, 0, 0.12);
  
  --text-main: #090d16;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  transition: background-color var(--transition), color var(--transition);
}

section[id],
header[id] {
  scroll-margin-top: 84px;
}

::selection {
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  z-index: 10000;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* ── Subtle Background Mesh Grid & Glow Orbs ── */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -2;
}

[data-theme="light"] .bg-grid-overlay {
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.ambient-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.38;
  will-change: transform;
}
.ambient-purple {
  top: -180px;
  left: 8%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55) 0%, rgba(124, 58, 237, 0.16) 40%, transparent 72%);
  animation: ambient-drift-1 18s ease-in-out infinite alternate;
}
.ambient-cyan {
  top: 38%;
  right: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5) 0%, rgba(6, 182, 212, 0.14) 40%, transparent 72%);
  animation: ambient-drift-2 22s ease-in-out infinite alternate;
}

@keyframes ambient-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.12); }
}
@keyframes ambient-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-70px, -60px) scale(1.1); }
}

.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.05) 35%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: left, top;
}
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, rgba(6, 182, 212, 0.04) 35%, transparent 70%);
}

/* ── Container ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography Utilities ── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-title {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Modern Spotlight Bento Cards ── */
.bento-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  align-self: stretch;
  transition: border-color var(--transition), transform 0.14s ease-out, box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

/* Mouse-follow spotlight glow overlay + border ring */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(124, 58, 237, 0.13),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(167, 139, 250, 0.55),
    rgba(6, 182, 212, 0.35) 35%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.bento-card:hover::before,
.bento-card:hover::after {
  opacity: 1;
}

/* ── Section Structure ── */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   NAVBAR (Floating Island)
══════════════════════════════════════════ */
.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  width: auto;
  max-width: 680px;
  transition: all var(--transition);
}
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  background: var(--border);
  border: none;
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: scale(1.08);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-role-label {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
[data-theme="light"] .hero-role-label {
  color: var(--primary);
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero-tagline em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-type-wrap {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.type-cursor {
  font-weight: 300;
  color: var(--primary);
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 540px;
}
.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ── Modern Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: all var(--spring);
  border: none;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover::after {
  left: 150%;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.55);
}
.btn-secondary {
  background: var(--border);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--spring);
}
.social-icon-btn:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}
[data-theme="light"] .social-icon-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .social-icon-btn:hover {
  background: var(--gradient-brand);
  color: #ffffff;
}

/* ── Avatar Frame & Infinite Rotating Animations ── */
.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-ring-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background breathing ambient glow */
.avatar-pulse-bg {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(6, 182, 212, 0.18) 45%, transparent 72%);
  animation: pulse-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pulse-glow {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

/* Vibrant Infinite Rotating Conic Gradient Ring */
.avatar-glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #06b6d4, #10b981, #ec4899, #7c3aed);
  animation: spin-infinite 7s linear infinite;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 0 35px rgba(6, 182, 212, 0.4);
}
@keyframes spin-infinite {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Outer Dashed Orbit Ring with Rotating Satellite Dot */
.avatar-orbit-ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1.5px dashed rgba(167, 139, 250, 0.45);
  animation: spin-reverse 16s linear infinite;
  pointer-events: none;
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.orbit-particle {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee, 0 0 24px #06b6d4;
}

.avatar-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 5px solid var(--bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ══════════════════════════════════════════
   ABOUT BENTO GRID
══════════════════════════════════════════ */
.about-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
  transition: transform var(--spring), background var(--transition), border-color var(--transition);
}
[data-theme="light"] .bento-icon-badge {
  color: var(--primary);
}
.bento-card:hover .bento-icon-badge {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.45);
}
.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.bento-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.bento-desc strong {
  color: var(--text-main);
}

.stat-metric-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-metric-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SKILLS ARSENAL (BENTO MATRIX)
══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: stretch;
}

.skills-grid .bento-desc {
  margin-bottom: 16px;
  min-height: 48px;
}

.skill-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.tech-pill {
  padding: 6px 14px;
  background: var(--border);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition);
}
.tech-pill:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.tech-pill.featured-pill {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--primary-light);
}
[data-theme="light"] .tech-pill.featured-pill {
  color: var(--primary);
}

/* ══════════════════════════════════════════
   PROJECTS SHOWCASE
══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card.featured-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%), var(--bg-card);
}

.project-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.project-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-pro {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--primary-light);
}
[data-theme="light"] .badge-pro,
[data-theme="light"] .section-tag {
  color: var(--primary);
}
.badge-personal {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-light);
}
[data-theme="light"] .badge-personal {
  color: #0e7490;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.project-subtitle {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-light);
  margin-bottom: 14px;
}
[data-theme="light"] .project-subtitle {
  color: var(--primary);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}
.project-desc strong {
  color: var(--text-main);
}

.project-highlights-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.highlight-line {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tech-micro-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-architecture {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--spring);
}
.btn-architecture:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   EXPERIENCE TIMELINE
══════════════════════════════════════════ */
.timeline-wrap {
  position: relative;
  padding-left: 36px;
  margin-top: 30px;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #7c3aed, #06b6d4, transparent);
  border-radius: var(--radius-full);
}
.timeline-card {
  position: relative;
  margin-bottom: 40px;
}
.timeline-node {
  position: absolute;
  left: -44px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 16px var(--primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.timeline-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.timeline-company {
  font-size: 0.95rem;
  color: var(--accent-light);
  font-weight: 600;
}
[data-theme="light"] .timeline-company {
  color: var(--primary);
}
.timeline-period {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-points {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-points li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.timeline-points li strong {
  color: var(--text-main);
}

/* ══════════════════════════════════════════
   CONTACT & FOOTER
══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.contact-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}
.contact-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.contact-link-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
  word-break: break-all;
  transition: color var(--transition);
}
[data-theme="light"] .contact-link-val {
  color: var(--primary);
}
.contact-link-val:hover {
  text-decoration: underline;
}

.copy-pill-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--border);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.copy-pill-btn:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.contact-cta-center {
  display: flex;
  justify-content: center;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   MODAL & TOAST & BACK-TO-TOP
══════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  max-width: 740px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--spring);
}
[data-theme="light"] .modal-dialog {
  background: #ffffff;
}
.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--border);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition);
}
.modal-close:hover {
  background: var(--gradient-brand);
  color: #fff;
  transform: rotate(90deg);
}

.arch-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  line-height: 1.7;
  overflow-x: auto;
  margin: 14px 0;
}
[data-theme="light"] .arch-box {
  background: #f1f5f9;
  color: #0f172a;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10006;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--spring), opacity 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--spring);
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.1);
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVENESS
══════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Eliminate fixed-layer & blur compositing on mobile so fast flick-scrolling stays 60/120fps */
  .bg-grid-overlay {
    position: absolute;
  }
  .ambient-glow {
    display: none;
  }
  body {
    background-image: radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.16), transparent 45%),
                      radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.12), transparent 40%);
  }
  [data-theme="light"] body {
    background-image: radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.08), transparent 45%),
                      radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.07), transparent 40%);
  }
  .bento-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(16, 22, 34, 0.94);
    contain: layout style paint;
  }
  [data-theme="light"] .bento-card {
    background: rgba(255, 255, 255, 0.97);
  }
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 15, 28, 0.94);
  }
  [data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.96);
  }
  .back-to-top,
  .toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(16, 22, 34, 0.95);
  }
  [data-theme="light"] .back-to-top,
  [data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.97);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-avatar-wrap {
    order: -1;
  }
  .avatar-ring-container {
    width: 230px;
    height: 230px;
  }
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-type-wrap,
  .hero-actions,
  .hero-social-row {
    justify-content: center;
  }
  
  .bento-col-8,
  .bento-col-4,
  .bento-col-6 {
    grid-column: span 12;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured-card {
    grid-column: span 1;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-wrapper {
    padding: 0 8px;
    top: 10px;
  }
  .navbar {
    padding: 5px 6px 5px 12px;
    gap: 6px;
    width: auto;
    max-width: 100%;
  }
  .nav-brand {
    font-size: 1rem;
    margin-right: 2px;
  }
  .nav-menu {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 70px 0;
  }
  .bento-card {
    padding: 22px 18px;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
  .hero-tagline {
    font-size: 1.2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline-wrap {
    padding-left: 24px;
  }
  .timeline-node {
    left: -32px;
  }
  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Clear Project Action Links ── */
.project-links-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--border);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  transition: all var(--transition);
}
.project-link-btn:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.project-internal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}
[data-theme="light"] .project-internal-tag {
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
}

/* ── Hero Social Labeled Pill Buttons ── */
.social-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--spring);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.brand-svg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.brand-github-btn svg { color: var(--text-main); }
.brand-linkedin-btn svg { color: #0a66c2; }
.brand-email-btn svg { color: #ea4335; }

.social-pill-btn:hover {
  background: var(--gradient-brand);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}
.social-pill-btn:hover .brand-svg-icon {
  color: #ffffff !important;
  transform: scale(1.15);
}

[data-theme="light"] .social-pill-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .brand-github-btn svg { color: #181717; }
[data-theme="light"] .brand-linkedin-btn svg { color: #0a66c2; }
[data-theme="light"] .brand-email-btn svg { color: #ea4335; }
[data-theme="light"] .social-pill-btn:hover {
  background: var(--gradient-brand);
  color: #ffffff !important;
}
[data-theme="light"] .social-pill-btn:hover .brand-svg-icon {
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════
   CROSS-DEVICE PERFORMANCE & ACCESSIBILITY POLISH
═══════════════════════════════════════════════════════ */

/* ── Prevent horizontal overflow on narrow screens ── */
html, body {
  max-width: 100vw;
  overflow-x: clip;
}

/* ── Touch target optimization on mobile ── */
@media (max-width: 480px) {
  .hero-social-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .social-pill-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .brand-svg-icon {
    width: 16px;
    height: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .project-top-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .project-link-btn {
    align-self: flex-start;
  }
  .contact-cta-center .btn {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
  }
}

/* ═══════════════════════════════════════════
   ENHANCED ANIMATIONS, MARQUEE & TERMINAL
═══════════════════════════════════════════ */

/* ── Animated Gradient Shimmer on Hero Name ── */
.hero-headline .gradient-text {
  background: linear-gradient(120deg, #7c3aed 0%, #06b6d4 45%, #a78bfa 75%, #7c3aed 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 7s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ── Button & Action Icon Micro-Motion ── */
.btn-primary svg,
.btn-architecture svg,
.project-link-btn svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
.btn-architecture:hover svg,
.project-link-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ── Featured Project Top Gradient Accent ── */
.project-card.featured-card {
  border-top: 2px solid rgba(124, 58, 237, 0.55);
}

/* ── Modal Typography & Light-Mode Contrast ── */
.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-light);
}
[data-theme="light"] .modal-subtitle {
  color: #0e7490;
}
.modal-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-icon-primary { color: var(--primary-light); }
.modal-icon-amber { color: var(--amber); }
.modal-icon-accent { color: var(--accent-light); }
[data-theme="light"] .modal-icon-primary { color: var(--primary); }
[data-theme="light"] .modal-icon-accent { color: #0e7490; }

/* ── Syntax-Highlighted Mini Terminal ── */
.t-prompt { color: #a78bfa; font-weight: 700; }
.t-key { color: #67e8f9; }
.t-val { color: #e2e8f0; }
.t-ok { color: #10b981; font-weight: 700; }
.t-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  vertical-align: -2px;
  margin-left: 2px;
  background: var(--accent-light);
  animation: blink 0.9s steps(1) infinite;
}

/* ── Infinite Tech Stack Marquee ── */
.tech-marquee-section {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 26, 0.45);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
[data-theme="light"] .tech-marquee-section {
  background: rgba(241, 245, 249, 0.75);
}
.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.tech-marquee-section:hover .tech-marquee-track {
  animation-play-state: paused;
}
.tech-marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.marquee-pill svg {
  width: 15px;
  height: 15px;
  color: var(--accent-light);
}
[data-theme="light"] .marquee-pill svg {
  color: var(--primary);
}
.marquee-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-2px);
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Interactive Mini Backend Terminal ── */
.mini-terminal {
  margin-top: auto;
  padding-top: 18px;
}
.mini-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
[data-theme="light"] .mini-terminal-bar {
  background: #e2e8f0;
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.t-red { background: #ef4444; }
.t-amber { background: #f59e0b; }
.t-green { background: #10b981; }
.terminal-tabs {
  display: flex;
  gap: 4px;
}
.t-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.t-tab:hover {
  color: var(--text-main);
}
.t-tab.active {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--primary-light);
}
[data-theme="light"] .t-tab.active {
  color: var(--primary);
}
.mini-terminal-body {
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--accent-light);
  min-height: 108px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
[data-theme="light"] .mini-terminal-body {
  background: #0f172a;
  color: #67e8f9;
}

/* ── Timeline Node Pulse & Featured Card Top Glow ── */
.timeline-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.55);
  animation: pulse-ring 2.4s infinite;
}

/* ── Animated Architecture Node Pipeline inside Modal ── */
.arch-pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
[data-theme="light"] .arch-pipeline {
  background: #f8fafc;
}
.arch-node {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  animation: node-fade-in 0.4s ease backwards;
}
.arch-connector {
  position: relative;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  overflow: hidden;
}
.arch-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: #ffffff;
  opacity: 0.85;
  animation: packet-flow 1.4s linear infinite;
}
@keyframes packet-flow {
  0% { left: -60%; }
  100% { left: 120%; }
}
@keyframes node-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── High Refresh Rate & Battery Efficiency ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
