/* ==========================================================================
   ANIRBAN KAR - DEVELOPER PORTFOLIO STYLESHEET
   Aesthetic Cyber Neon · Silky Smooth Animations · Zero Glitch
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Light Theme */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-medium: #cbd5e1;
  --border-active: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --neon-cyan: #0284c7;
  --neon-magenta: #c026d3;
  --neon-purple: #7c3aed;
  --neon-emerald: #059669;
  --neon-amber: #d97706;
  --neon-rose: #e11d48;

  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #6366f1 40%, #c026d3 80%, #f43f5e 100%);
  --rainbow-gradient: linear-gradient(90deg, #0284c7, #7c3aed, #c026d3, #f43f5e, #d97706, #059669, #0284c7);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 35px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.2);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  color-scheme: light dark;
}

/* System Dark Theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-base: #060911;
    --bg-surface: #0c1222;
    --bg-elevated: #151e36;
    --bg-glass: rgba(12, 18, 34, 0.85);
    --bg-glass-strong: rgba(12, 18, 34, 0.95);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-medium: rgba(255, 255, 255, 0.16);
    --border-active: #38bdf8;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --neon-cyan: #38bdf8;
    --neon-magenta: #f43f5e;
    --neon-purple: #a855f7;
    --neon-emerald: #34d399;
    --neon-amber: #fbbf24;
    --neon-rose: #fb7185;

    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, #f43f5e 100%);
    --rainbow-gradient: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #f43f5e, #fbbf24, #34d399, #38bdf8);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 35px -6px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.28);
  }
}

/* Explicit Dark Theme */
[data-theme="dark"] {
  --bg-base: #060911;
  --bg-surface: #0c1222;
  --bg-elevated: #151e36;
  --bg-glass: rgba(12, 18, 34, 0.85);
  --bg-glass-strong: rgba(12, 18, 34, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-active: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --neon-cyan: #38bdf8;
  --neon-magenta: #f43f5e;
  --neon-purple: #a855f7;
  --neon-emerald: #34d399;
  --neon-amber: #fbbf24;
  --neon-rose: #fb7185;

  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, #f43f5e 100%);
  --rainbow-gradient: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #f43f5e, #fbbf24, #34d399, #38bdf8);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 35px -6px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.28);
}

/* Explicit Light Theme */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-medium: #cbd5e1;
  --border-active: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --neon-cyan: #0284c7;
  --neon-magenta: #c026d3;
  --neon-purple: #7c3aed;
  --neon-emerald: #059669;
  --neon-amber: #d97706;
  --neon-rose: #e11d48;

  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #6366f1 40%, #c026d3 80%, #f43f5e 100%);
  --rainbow-gradient: linear-gradient(90deg, #0284c7, #7c3aed, #c026d3, #f43f5e, #d97706, #059669, #0284c7);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 35px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: var(--neon-cyan);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

code, pre {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }

/* Interactive Particles Canvas */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Background Animated Aurora Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.22;
  border-radius: 50%;
  animation: floatBlobs 24s ease-in-out infinite alternate;
}

.blob-1 {
  top: -5%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: var(--neon-cyan);
}

.blob-2 {
  top: 25%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: var(--neon-purple);
  animation-delay: -6s;
}

.blob-3 {
  bottom: 10%;
  left: 20%;
  width: 480px;
  height: 480px;
  background: var(--neon-magenta);
  animation-delay: -12s;
}

.blob-4 {
  bottom: -15%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: var(--neon-emerald);
  animation-delay: -18s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* ---------- Navigation Bar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--bg-glass-strong);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-avatar-mini {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.nav-avatar-mini:hover {
  transform: scale(1.08);
}

.nav-avatar-mini img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.nav-avatar-ring {
  position: absolute;
  inset: -4px;
  border: 1.5px dashed var(--neon-magenta);
  border-radius: 50%;
  animation: rotateRing 10s linear infinite;
}

.logo-terminal {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  background: var(--bg-elevated);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.logo-name { color: var(--text-primary); }
.accent-dot { color: var(--neon-cyan); }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  background-color: rgba(5, 150, 105, 0.14);
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: pulseDot 1.8s infinite ease-in-out;
}

.status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon-emerald);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.55; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rainbow-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.cta-link {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.nav-link.cta-link:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.nav-link.cta-link::after { display: none; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-icon:hover {
  background: var(--border-medium);
  transform: translateY(-1px);
}

.icon-moon { display: none; }
.icon-sun { display: block; }

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: block; }
  :root:not([data-theme="light"]) .icon-sun { display: none; }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   HERO SECTION & TOP-LEFT HOLOGRAM PHOTO SHOWCASE
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-top-left-profile {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-bottom: 2rem;
}

.hologram-avatar-wrap {
  position: relative;
  width: 138px;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  perspective: 800px;
  animation: floatAvatar 4s ease-in-out infinite alternate;
}

@keyframes floatAvatar {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(-1px); }
}

.cyber-glow-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(244, 63, 94, 0.3) 55%, transparent 75%);
  filter: blur(16px);
  z-index: 0;
  animation: pulseAura 3s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.cyber-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-1 {
  inset: -8px;
  border: 2px dashed var(--neon-cyan);
  animation: rotateRing 8s linear infinite;
}

.ring-2 {
  inset: -16px;
  border: 1.5px dotted var(--neon-magenta);
  animation: rotateRingRev 14s linear infinite;
}

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

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

/* Avatar Photo Frame with Perfect Internal Scan Mask */
.avatar-photo-frame {
  position: relative;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.55), 0 0 50px rgba(244, 63, 94, 0.25);
  border: 3.5px solid #ffffff;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

[data-theme="dark"] .avatar-photo-frame {
  border-color: rgba(56, 189, 248, 0.85);
}

.avatar-photo-frame:hover {
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.8), 0 0 65px rgba(244, 63, 94, 0.45);
}

.hologram-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.avatar-photo-frame:hover .hologram-avatar-img {
  transform: scale(1.08);
}

/* Scanning beam inside the circular frame */
.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), #ffffff, var(--neon-magenta), transparent);
  box-shadow: 0 0 10px var(--neon-cyan);
  opacity: 0.85;
  z-index: 4;
  pointer-events: none;
  animation: scanBeam 3.2s ease-in-out infinite;
}

@keyframes scanBeam {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

/* Orbiting Badges */
.orbit-badge {
  position: absolute;
  z-index: 5;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  pointer-events: none;
}

.orbit-1 {
  top: -8px;
  right: -24px;
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--neon-cyan);
}

.orbit-2 {
  bottom: -6px;
  left: -20px;
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--neon-emerald);
}

.orbit-3 {
  bottom: 12px;
  right: -32px;
  border-color: rgba(244, 63, 94, 0.4);
}

.orbit-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 6px var(--neon-emerald);
  margin-right: 3px;
}

.avatar-switcher-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.switcher-tag {
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.hero-profile-meta {
  display: flex;
  flex-direction: column;
}

.meta-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wave-emoji {
  display: inline-block;
  animation: waveArm 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes waveArm {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.meta-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShimmer 6s linear infinite;
}

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

.meta-title-tag {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-weight: 600;
  margin-top: 0.15rem;
}

.pulse-spark {
  color: var(--neon-amber);
  animation: sparkPulse 1.5s infinite;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.eyebrow-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.12);
}

.location-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  line-height: 1.15;
}

.gradient-text.animated-gradient {
  background: var(--rainbow-gradient);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowMove 6s ease infinite alternate;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-description strong { color: var(--text-primary); }

.hero-description code {
  background: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  font-size: 0.92rem;
}

/* Quick Metrics Bar */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
  padding: 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.neon-card-glow {
  box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.15);
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.metric-card:last-child { border-right: none; }

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--neon-cyan);
  line-height: 1.2;
}

.highlight-accent { color: var(--neon-purple); }
.highlight-green { color: var(--neon-emerald); }
.highlight-cyan { color: var(--neon-cyan); }
.highlight-magenta { color: var(--neon-magenta); }
.highlight-amber { color: var(--neon-amber); }

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* ==========================================================================
   COMPACT CONNECTED CYBER ACTIONS STREAM (HERO TOP ACTIONS)
   Futuristic, compact, interconnected nodes with animated dotted stream
   ========================================================================== */

.hero-actions-stream-wrap {
  margin: 1.4rem 0 1.8rem 0;
  padding: 0.75rem 1rem 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
}

[data-theme="dark"] .hero-actions-stream-wrap,
:root:not([data-theme="light"]) .hero-actions-stream-wrap {
  background: rgba(12, 18, 34, 0.72);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(2, 132, 199, 0.08);
}

.hero-actions-stream-wrap:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(56, 189, 248, 0.12);
}

/* Ambient Moving Energy Beam along the top border */
.hero-actions-stream-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  animation: streamBorderBeam 5s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes streamBorderBeam {
  0% { left: -60%; }
  100% { left: 160%; }
}

/* Stream HUD Header */
.actions-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.actions-stream-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

.stream-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: streamBeaconPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes streamBeaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--neon-emerald); }
  50% { transform: scale(1.4); opacity: 0.65; box-shadow: 0 0 16px var(--neon-emerald); }
}

.actions-stream-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
}

.stream-meta-flow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stream-meta-flow .meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: metaDotPulse 1.4s infinite alternate;
}

@keyframes metaDotPulse {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.stream-meta-badge {
  padding: 0.15rem 0.45rem;
  background: rgba(5, 150, 105, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.64rem;
  font-weight: 600;
}

/* Connected Actions Rail / Flow */
.hero-connected-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.6rem;
  column-gap: 0.25rem;
  position: relative;
}

/* Action Node Wrapper with subtle staggered floating physics */
.action-node-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  animation: actionNodeFloat 3.8s ease-in-out infinite alternate;
}

.action-node-wrapper[data-index="0"] { animation-delay: 0s; }
.action-node-wrapper[data-index="1"] { animation-delay: 0.4s; }
.action-node-wrapper[data-index="2"] { animation-delay: 0.8s; }
.action-node-wrapper[data-index="3"] { animation-delay: 1.2s; }
.action-node-wrapper[data-index="4"] { animation-delay: 1.6s; }
.action-node-wrapper[data-index="5"] { animation-delay: 2.0s; }

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

/* Compact Action Button Base */
.compact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  height: 35px;
  padding: 0 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease,
              background 0.22s ease,
              color 0.22s ease;
  user-select: none;
}

.compact-action-btn:hover {
  transform: translateY(-3px) scale(1.03);
  color: var(--text-primary);
  z-index: 5;
}

/* Moving Light Sheen Sweep Effect on compact buttons */
.btn-sheen-sweep {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: actionSheenSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

[data-theme="light"] .btn-sheen-sweep {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

@keyframes actionSheenSweep {
  0% { left: -120%; opacity: 0; }
  15% { opacity: 0.8; }
  35% { left: 160%; opacity: 0; }
  100% { left: 160%; opacity: 0; }
}

/* Ambient glow under hover */
.btn-ambient-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.compact-action-btn:hover .btn-ambient-glow {
  opacity: 1;
}

/* 1. AI Copilot Node */
.action-ai-copilot {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.24));
  border-color: rgba(56, 189, 248, 0.45);
}

[data-theme="light"] .action-ai-copilot {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(124, 58, 237, 0.14));
  border-color: rgba(2, 132, 199, 0.35);
}

.action-ai-copilot:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4), 0 0 15px rgba(168, 85, 247, 0.35);
}

.action-ai-copilot .btn-ambient-glow {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), transparent 70%);
}

/* Rotating Border Beam for AI Copilot */
.btn-border-beam {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 60%, var(--neon-cyan) 85%, var(--neon-purple) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: rotateBorderBeam 3.6s linear infinite;
}

@property --beam-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotateBorderBeam {
  to { --beam-angle: 360deg; }
}

/* AI Copilot Radar Status Ring */
.action-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.action-status-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--neon-cyan);
  animation: pingStatusRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes pingStatusRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}

.action-badge-live {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  letter-spacing: 0.04em;
}

/* 2. Projects Node */
.action-projects {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(99, 102, 241, 0.15));
  border-color: rgba(2, 132, 199, 0.35);
}

.action-projects:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35), 0 0 12px rgba(99, 102, 241, 0.25);
}

.action-badge-metric {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.38rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

/* 3. Architecture Pipeline Node */
.action-pipeline {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(20, 184, 166, 0.16));
  border-color: rgba(5, 150, 105, 0.35);
}

.action-pipeline:hover {
  border-color: var(--neon-emerald);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35), 0 0 12px rgba(20, 184, 166, 0.25);
}

/* 4. GitHub Profile Node */
.action-github {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(244, 63, 94, 0.12));
  border-color: rgba(168, 85, 247, 0.32);
}

.action-github:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35), 0 0 12px rgba(244, 63, 94, 0.25);
}

.action-svg-icon {
  display: block;
  fill: currentColor;
}

.action-badge-dim {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* 5. CLI Terminal Node */
.action-cli {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.14));
  border-color: rgba(217, 119, 6, 0.32);
}

.action-cli:hover {
  border-color: var(--neon-amber);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35), 0 0 12px rgba(245, 158, 11, 0.25);
}

.action-cli-prompt {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-amber);
  font-size: 0.8rem;
}

/* 6. Contact & Socials Cluster */
.action-contact-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.action-contact {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.14));
  border-color: rgba(99, 102, 241, 0.32);
}

.action-contact:hover {
  border-color: #6366f1;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.sub-actions-dock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sub-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sub-action-pill:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   DOTTED CONNECTOR WITH SMALL DOTTED ANIMATIONS
   Connects the action buttons with an animated, flowing dotted packet stream
   ========================================================================== */

.action-connector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem;
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

.connector-line-wrap {
  display: flex;
  align-items: center;
  position: relative;
  height: 12px;
}

/* SVG Line with Crisp Dotted Pattern */
.connector-svg {
  display: block;
  overflow: visible;
  color: var(--neon-cyan);
}

.connector-dotted-line {
  stroke: var(--neon-cyan);
  stroke-opacity: 0.38;
  stroke-dasharray: 2 4;
  animation: dottedLineFlow 1.4s linear infinite;
  transition: stroke-opacity 0.3s ease, stroke 0.3s ease;
}

@keyframes dottedLineFlow {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: 0; }
}

/* Traveling Animated Light Packet */
.connector-flowing-packet {
  fill: var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--neon-cyan)) drop-shadow(0 0 7px var(--neon-cyan));
  animation: packetSlideAcross 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.95;
  transition: filter 0.3s ease, fill 0.3s ease;
}

/* Staggered Packet Traveling Across Consecutive Connectors */
.hero-connected-actions .action-connector:nth-of-type(1) .connector-flowing-packet {
  animation-delay: 0s;
}
.hero-connected-actions .action-connector:nth-of-type(2) .connector-flowing-packet {
  animation-delay: 0.3s;
}
.hero-connected-actions .action-connector:nth-of-type(3) .connector-flowing-packet {
  animation-delay: 0.6s;
}
.hero-connected-actions .action-connector:nth-of-type(4) .connector-flowing-packet {
  animation-delay: 0.9s;
}
.hero-connected-actions .action-connector:nth-of-type(5) .connector-flowing-packet {
  animation-delay: 1.2s;
}

/* Hardware-Accelerated Traveling Luminous Packet Bead */
.traveling-packet-bead {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px var(--neon-cyan), 0 0 12px var(--neon-cyan), 0 0 18px #ffffff;
  animation: packetSlideBead 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 3;
}

.hero-connected-actions .action-connector:nth-of-type(1) .traveling-packet-bead {
  animation-delay: 0s;
}
.hero-connected-actions .action-connector:nth-of-type(2) .traveling-packet-bead {
  animation-delay: 0.28s;
}
.hero-connected-actions .action-connector:nth-of-type(3) .traveling-packet-bead {
  animation-delay: 0.56s;
}
.hero-connected-actions .action-connector:nth-of-type(4) .traveling-packet-bead {
  animation-delay: 0.84s;
}
.hero-connected-actions .action-connector:nth-of-type(5) .traveling-packet-bead {
  animation-delay: 1.12s;
}

@keyframes packetSlideBead {
  0% {
    transform: translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateX(3px) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translateX(24px) scale(1.1);
  }
  100% {
    transform: translateX(28px) scale(0.6);
    opacity: 0;
  }
}

/* Node Connection Port Anchors on Action Node Wrappers */
.node-port {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 5px var(--neon-cyan), 0 0 8px var(--neon-cyan);
  pointer-events: none;
  opacity: 0.8;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  z-index: 5;
}

.port-in {
  left: -2.5px;
}

.port-out {
  right: -2.5px;
}

.action-node-wrapper:hover .node-port {
  opacity: 1;
  transform: scale(1.4);
  box-shadow: 0 0 8px #ffffff, 0 0 16px var(--neon-cyan);
}

@keyframes packetSlideAcross {
  0% {
    cx: 2px;
    opacity: 0;
    r: 1.5;
  }
  15% {
    opacity: 1;
    r: 2.4;
  }
  85% {
    opacity: 1;
    r: 2.4;
  }
  100% {
    cx: 32px;
    opacity: 0;
    r: 1.5;
  }
}

/* Directional Arrow Head */
.connector-arrow-head {
  fill: var(--neon-cyan);
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(1.5px); }
}

/* Secondary Micro-Dots Cascade along the track */
.connector-micro-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 6px 0 2px;
  pointer-events: none;
}

.connector-micro-dots .micro-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--neon-cyan);
  opacity: 0.35;
  animation: microDotGlow 1.2s ease-in-out infinite;
}

.connector-micro-dots .md-1 { animation-delay: 0.1s; }
.connector-micro-dots .md-2 { animation-delay: 0.35s; }
.connector-micro-dots .md-3 { animation-delay: 0.6s; }

@keyframes microDotGlow {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.6); opacity: 0.85; box-shadow: 0 0 4px var(--neon-cyan); }
}

/* Interactive Hover Feedback on Connectors */
.action-node-wrapper:hover + .action-connector .connector-dotted-line {
  stroke-opacity: 0.95;
  stroke: var(--neon-cyan);
  filter: drop-shadow(0 0 3px var(--neon-cyan));
  animation-duration: 0.7s;
}

.action-node-wrapper:hover + .action-connector .connector-flowing-packet {
  animation-duration: 0.8s;
  fill: #ffffff;
  filter: drop-shadow(0 0 6px var(--neon-cyan)) drop-shadow(0 0 10px #ffffff);
}

.action-node-wrapper:hover + .action-connector .traveling-packet-bead {
  animation-duration: 0.7s;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-purple);
}

.action-node-wrapper:hover + .action-connector .connector-arrow-head {
  opacity: 1;
  fill: var(--neon-cyan);
}

/* Interactive cursor holographic flare on stream wrap */
.hero-actions-stream-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 260px at var(--stream-mx, 50%) var(--stream-my, 50%), rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-actions-stream-wrap:hover::after {
  opacity: 1;
}

/* High-speed packet surge on click */
.hero-actions-stream-wrap.stream-pulsing .connector-dotted-line {
  stroke-opacity: 1;
  animation-duration: 0.5s;
  stroke: var(--neon-cyan);
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.hero-actions-stream-wrap.stream-pulsing .traveling-packet-bead {
  animation-duration: 0.55s;
  box-shadow: 0 0 12px #ffffff, 0 0 24px var(--neon-cyan);
}

/* Responsive Handling */
@media (max-width: 992px) {
  .hero-actions-stream-wrap {
    margin: 1.2rem 0 1.5rem 0;
    padding: 0.7rem 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero-connected-actions {
    gap: 0.3rem;
  }
  .action-connector {
    padding: 0 0.05rem;
  }
  .connector-svg {
    width: 26px;
  }
  .connector-dotted-line {
    x2: 20;
  }
  .connector-arrow-head {
    transform: translateX(-10px);
  }
  @keyframes packetSlideAcross {
    0% { cx: 2px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { cx: 20px; opacity: 0; }
  }
}

@media (max-width: 480px) {
  .actions-stream-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .action-badge-dim {
    display: none;
  }
  .connector-svg {
    width: 18px;
  }
  .sub-actions-dock {
    flex-wrap: wrap;
  }
}

/* Reduced Motion Preference Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-actions-stream-wrap::before,
  .action-node-wrapper,
  .btn-border-beam,
  .btn-sheen-sweep,
  .action-status-ring,
  .connector-dotted-line,
  .connector-flowing-packet,
  .connector-arrow-head,
  .connector-micro-dots .micro-dot,
  .stream-pulse-dot,
  .stream-meta-flow .meta-dot {
    animation: none !important;
  }
  .connector-dotted-line {
    stroke-opacity: 0.5;
  }
  .connector-flowing-packet {
    display: none;
  }
}

/* Legacy & General Button Styles */
.hero-actions {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.55);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  color: var(--neon-cyan);
  background: var(--bg-elevated);
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  border-color: var(--neon-cyan);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.w-100 { width: 100%; }

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* Terminal Mockup */
.terminal-mockup {
  background: #090d16;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 45px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: var(--font-mono);
  color: #e6edf3;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #141a29;
  border-bottom: 1px solid #30363d;
}

.mockup-dots { display: flex; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title { font-size: 0.78rem; color: #8b949e; }
.mockup-badge {
  font-size: 0.7rem;
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.14);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.mockup-body { padding: 1.4rem; font-size: 0.86rem; line-height: 1.6; }
.code-line { margin: 0.4rem 0; }
.prompt { color: #58a6ff; font-weight: 600; }
.cmd { color: #79c0ff; }
.sys-output { color: #8b949e; margin-bottom: 0.5rem; }
.success-text { color: #3fb950; }
.cursor { animation: blink 1s infinite; color: #58a6ff; font-weight: 700; }

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

.json-output {
  background: #101626;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0.6rem 0;
  border: 1px solid #1f293d;
  font-size: 0.82rem;
}

.json-output .key { color: #ff7b72; }
.json-output .str { color: #a5d6ff; }
.json-output .bool { color: #79c0ff; }

/* ==========================================================================
   SEAMLESS DUAL-TRACK MARQUEE (NO JITTER, ZERO GLITCH)
   ========================================================================== */
.marquee-section {
  padding: 1.4rem 0;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.2rem;
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.2rem;
  min-width: 100%;
  animation: scrollMarquee 26s linear infinite;
}

.track-reverse .marquee-group {
  animation: scrollMarqueeReverse 26s linear infinite;
}

.marquee-section:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 1.2rem)); }
}

@keyframes scrollMarqueeReverse {
  from { transform: translateX(calc(-100% - 1.2rem)); }
  to { transform: translateX(0); }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.marquee-pill:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

/* ---------- Section Common ---------- */
.section { padding: 5.5rem 0; position: relative; z-index: 2; }
.section-header { margin-bottom: 3.5rem; }

.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   ARCHITECTURE & PIPELINE (CLEAN SEQUENTIAL PULSE FLOW)
   ========================================================================== */
.pipeline-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pipeline-flow-wrapper {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.neon-box {
  box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.12);
}

.pipeline-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.pipeline-card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.2rem;
  text-align: center;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Sequential Glowing Wave on Nodes */
.pipeline-card[data-step="01"] { animation: nodeGlow 8s infinite ease-in-out; }
.pipeline-card[data-step="02"] { animation: nodeGlow 8s infinite ease-in-out 2s; }
.pipeline-card[data-step="03"] { animation: nodeGlow 8s infinite ease-in-out 4s; }
.pipeline-card[data-step="04"] { animation: nodeGlow 8s infinite ease-in-out 6s; }

@keyframes nodeGlow {
  0%, 100% { border-color: var(--border-subtle); }
  25% { border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
  50% { border-color: var(--border-subtle); }
}

.pipeline-card:hover {
  border-color: var(--neon-cyan) !important;
  box-shadow: var(--shadow-xl), var(--shadow-glow) !important;
}

.pipeline-icon-box {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.floating-icon {
  animation: floatIcon 3.5s ease-in-out infinite alternate;
}

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

.pipeline-svg {
  max-height: 75px;
  max-width: 100%;
  object-fit: contain;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.pipeline-name { font-size: 1.05rem; margin-bottom: 0.55rem; }
.pipeline-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.pipeline-tags {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pipeline-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.pipeline-arrow {
  font-size: 1.4rem;
  color: var(--neon-cyan);
}

.arrow-glow {
  animation: arrowPulse 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(4px); opacity: 1; color: var(--neon-magenta); }
}

.pipeline-terminal-bar {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pipeline-terminal-bar .cyan { color: var(--neon-cyan); font-weight: 700; }
.pipeline-terminal-bar .magenta { color: var(--neon-magenta); font-weight: 700; }
.pipeline-terminal-bar .emerald { color: var(--neon-emerald); font-weight: 700; }
.pipeline-terminal-bar .amber { color: var(--neon-amber); font-weight: 700; }

/* ---------- Featured Projects Section ---------- */
.projects-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.projects-section .section-lead { margin-left: 0; }

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.filter-btn:hover { color: var(--text-primary); }

.filter-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Card Styling with NO JITTER on tilt */
.tilt-card {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(56, 189, 248, 0.2);
}

.project-preview-wrap {
  position: relative;
  height: 200px;
  background: var(--bg-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.project-svg-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-svg-banner {
  transform: scale(1.04);
}

.fallback-preview {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(192, 38, 211, 0.12));
}

.preview-brand-icon { font-size: 4rem; }

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project-tech { color: var(--neon-cyan); font-weight: 700; }
.project-stars { color: var(--text-muted); font-weight: 600; }
.project-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.project-title a:hover { color: var(--neon-cyan); }

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

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

.tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.project-links { display: flex; align-items: center; gap: 0.6rem; }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.icon-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: var(--bg-surface);
}

.icon-link.primary-link {
  background: rgba(2, 132, 199, 0.12);
  color: var(--neon-cyan);
  border-color: rgba(2, 132, 199, 0.35);
}

.icon-link.primary-link:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* ---------- Skills Section ---------- */
.skills-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.skills-banner-wrap {
  margin-bottom: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 0;
}

.skills-stream-svg {
  width: 100%;
  height: auto;
  display: block;
}

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.matrix-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.matrix-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.18);
}

.matrix-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.matrix-icon { font-size: 1.4rem; }
.matrix-header h3 { font-size: 1.15rem; }
.matrix-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.skill-items { display: flex; flex-direction: column; gap: 0.9rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.35rem; }
.skill-name { font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); }

.skill-bar {
  height: 6px;
  width: 100%;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ---------- Telemetry Section ---------- */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.2rem;
  align-items: stretch;
}

.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-emerald);
  animation: pulseDot 1.5s infinite;
}

.btn-refresh {
  color: var(--text-muted);
  transition: transform 0.5s ease, color 0.2s ease;
}

.btn-refresh:hover { color: var(--neon-cyan); transform: rotate(180deg); }

.live-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.live-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.live-stat-item:last-child { border-bottom: none; }
.stat-lbl { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.stat-val { font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; }
.live-card-footer { margin-top: auto; }
.card-inner-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }

.metrics-visuals {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stats-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.telemetry-cta-bar { margin-top: auto; text-align: center; }

/* ---------- Terminal Section ---------- */
.terminal-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cli-container {
  max-width: 900px;
  margin: 0 auto;
  background: #090d16;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.cli-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #141a29;
  border-bottom: 1px solid #30363d;
}

.cli-buttons { display: flex; gap: 6px; }
.cli-dot { width: 12px; height: 12px; border-radius: 50%; }
.cli-dot.red { background: #ff5f56; }
.cli-dot.yellow { background: #ffbd2e; }
.cli-dot.green { background: #27c93f; }

.cli-title { font-size: 0.8rem; color: #8b949e; }
.cli-actions { display: flex; align-items: center; }

.cli-action-btn {
  font-size: 0.72rem;
  color: #8b949e;
  padding: 0.2rem 0.5rem;
  border: 1px solid #30363d;
  border-radius: 4px;
}

.cli-action-btn:hover { color: #e6edf3; border-color: #58a6ff; }

.cli-screen {
  padding: 1.5rem;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  color: #c9d1d9;
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: text;
}

.ascii-art {
  color: #58a6ff;
  font-size: 0.65rem;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.cli-line { margin-bottom: 0.5rem; }
.cli-tag { color: #58a6ff; text-decoration: underline; cursor: pointer; margin: 0 0.2rem; font-weight: 700; }
.cli-tag:hover { color: #a5d6ff; }

.cli-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.prompt-user { color: #7ee787; font-weight: 700; }
.prompt-dir { color: #58a6ff; }

.cli-input-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #ffffff;
}

.cli-cmd-echo { color: #ffffff; font-weight: 700; }
.cli-res-text { color: #8b949e; margin-bottom: 0.7rem; white-space: pre-wrap; }

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.bio-text { margin-bottom: 2rem; }
.bio-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.bio-highlights { display: flex; flex-direction: column; gap: 1.2rem; }
.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.highlight-item:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.highlight-icon {
  font-size: 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.highlight-item strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.highlight-item p { font-size: 0.88rem; color: var(--text-muted); }

.about-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.profile-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--neon-magenta);
  border-radius: 50%;
}

.ring-spin-slow { animation: rotateRing 15s linear infinite; }

.avatar-ring-outer {
  position: absolute;
  inset: -14px;
  border: 1.5px dotted var(--neon-cyan);
  border-radius: 50%;
}

.ring-spin-reverse { animation: rotateRingRev 20s linear infinite; }

.profile-card-name { font-size: 1.4rem; margin-bottom: 0.3rem; }
.profile-card-title {
  font-size: 0.92rem;
  color: var(--neon-cyan);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.profile-meta-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.profile-meta-pills span {
  font-size: 0.75rem;
  background: var(--bg-elevated);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
}

.profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-contact-item:hover {
  background: var(--bg-elevated);
  color: var(--neon-cyan);
}

/* ---------- Contact Section ---------- */
.contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-channel-cards { display: flex; flex-direction: column; gap: 1rem; }

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateX(4px);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-sm), 0 0 15px rgba(56, 189, 248, 0.2);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mail-icon { background: rgba(234, 67, 53, 0.12); color: #ea4335; }
.in-icon { background: rgba(10, 102, 194, 0.12); color: #0a66c2; }
.gh-icon { background: rgba(56, 189, 248, 0.12); color: var(--neon-cyan); }

.channel-info { flex-grow: 1; }
.channel-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.channel-val { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.channel-arrow { font-size: 1.2rem; color: var(--text-muted); }

/* Composer Form */
.composer-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.composer-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.composer-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.composer-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }

.form-field input, .form-field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.composer-actions { display: flex; gap: 0.85rem; margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo code { font-size: 1.05rem; font-weight: 700; color: var(--neon-cyan); }
.footer-copyright { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--neon-cyan); }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .telemetry-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pipeline-grid { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-links.open { transform: translateY(0); }

  .hero-top-left-profile {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: none; }
  .metric-card:nth-child(3) { border-top: 1px solid var(--border-subtle); padding-top: 0.8rem; }
  .metric-card:nth-child(4) { border-top: 1px solid var(--border-subtle); padding-top: 0.8rem; }

  .contact-box { padding: 2rem 1.2rem; }
  .composer-actions { flex-direction: column; }

  /* Space Elements Mobile Adjustments */
  .hero-astronaut-drift {
    width: 90px;
    height: 110px;
    top: -45px;
    right: -10px;
  }

  .celestial-planet {
    width: 140px;
    height: 100px;
    top: 90px;
    right: -15px;
    opacity: 0.6;
  }

  .celestial-satellite {
    display: none;
  }

  .cosmic-divider img {
    height: 36px;
  }

  .btn-warp .warp-text {
    display: none;
  }

  .btn-warp {
    padding: 0.45rem 0.6rem;
  }
}

/* ==========================================================================
   COSMIC SPACE ANIMATIONS, CELESTIAL BODIES & TRANSITIONS ENGINE
   ========================================================================== */

/* ---------- 1. Cosmic Flight Progress Tracker ---------- */
.cosmic-scroll-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1000;
  pointer-events: none;
}

.cosmic-scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 25%, #c084fc 50%, #f43f5e 75%, #fbbf24 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9), 0 0 25px rgba(244, 63, 94, 0.7);
  position: relative;
  transition: width 0.08s linear;
}

.cosmic-rocket-marker {
  position: absolute;
  right: -12px;
  top: -9px;
  font-size: 15px;
  filter: drop-shadow(0 0 10px #38bdf8) drop-shadow(0 0 20px #f43f5e);
  transform: rotate(45deg);
  display: inline-block;
  pointer-events: none;
  animation: rocketThrusterShudder 0.3s ease-in-out infinite alternate;
}

@keyframes rocketThrusterShudder {
  0% { transform: rotate(45deg) translate(0, 0); }
  100% { transform: rotate(45deg) translate(1px, -1px); }
}

/* ---------- 2. Hyperspace Warp Speed Button ---------- */
.btn-warp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  user-select: none;
}

.btn-warp:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(244, 63, 94, 0.4));
  border-color: #f43f5e;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4), 0 0 15px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px) scale(1.03);
}

.btn-warp .warp-icon {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.btn-warp:hover .warp-icon {
  transform: scale(1.2) rotate(-15deg);
}

.btn-warp.warp-active {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #f43f5e 100%);
  color: #060911;
  font-weight: 800;
  border-color: #ffffff;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.9), 0 0 45px rgba(244, 63, 94, 0.7);
  animation: warpPulseGlow 1.2s ease-in-out infinite alternate;
}

@keyframes warpPulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 240, 255, 0.7), 0 0 35px rgba(244, 63, 94, 0.5); }
  100% { transform: scale(1.05); box-shadow: 0 0 35px rgba(0, 240, 255, 1), 0 0 60px rgba(244, 63, 94, 0.85); }
}

/* ---------- 3. Floating Celestial Bodies (Planet & Satellite) ---------- */
.celestial-body {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

.celestial-planet {
  top: 140px;
  right: 2%;
  width: 240px;
  height: 170px;
  opacity: 0.88;
  animation: celestialPlanetDrift 16s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.35));
}

.celestial-planet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes celestialPlanetDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 35px) rotate(4deg); }
  100% { transform: translate(15px, -20px) rotate(-3deg); }
}

.celestial-satellite {
  top: 480px;
  left: 2%;
  width: 180px;
  height: 120px;
  opacity: 0.82;
  animation: celestialSatelliteDrift 22s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.3));
}

.celestial-satellite-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes celestialSatelliteDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -45px) rotate(-6deg); }
  100% { transform: translate(-25px, 20px) rotate(5deg); }
}

/* Light Theme tweaks for celestial bodies */
[data-theme="light"] .celestial-planet {
  opacity: 0.55;
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.25));
}
[data-theme="light"] .celestial-satellite {
  opacity: 0.5;
}

/* ---------- 4. Floating Hero Astronaut ---------- */
.hero-visual {
  position: relative;
}

.hero-astronaut-drift {
  position: absolute;
  top: -65px;
  right: -30px;
  width: 135px;
  height: 160px;
  z-index: 8;
  pointer-events: none;
  animation: heroAstroFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
  transform-origin: center center;
}

.hero-astronaut-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

/* ---------- 5. Cosmic Wave Dividers ---------- */
.cosmic-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -4px 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.cosmic-divider img {
  width: 100%;
  height: 55px;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
}

.cosmic-divider.divider-flip {
  transform: scaleY(-1);
}

/* ---------- 6. Smooth Scroll-Driven Reveal Transitions ---------- */
.space-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.975);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.space-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Smooth Staggered Child Element Cascade */
.pipeline-grid > .pipeline-card,
.projects-grid > .project-card,
.skills-matrix-grid > .matrix-card,
.telemetry-grid > .telemetry-card {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.space-reveal.revealed .pipeline-grid > .pipeline-card:nth-child(1),
.space-reveal.revealed .projects-grid > .project-card:nth-child(1),
.space-reveal.revealed .skills-matrix-grid > .matrix-card:nth-child(1),
.space-reveal.revealed .telemetry-grid > .telemetry-card:nth-child(1) {
  transition-delay: 0.08s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.space-reveal.revealed .pipeline-grid > .pipeline-card:nth-child(3),
.space-reveal.revealed .projects-grid > .project-card:nth-child(2),
.space-reveal.revealed .skills-matrix-grid > .matrix-card:nth-child(2),
.space-reveal.revealed .telemetry-grid > .telemetry-card:nth-child(2) {
  transition-delay: 0.16s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.space-reveal.revealed .pipeline-grid > .pipeline-card:nth-child(5),
.space-reveal.revealed .projects-grid > .project-card:nth-child(3),
.space-reveal.revealed .skills-matrix-grid > .matrix-card:nth-child(3) {
  transition-delay: 0.24s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.space-reveal.revealed .pipeline-grid > .pipeline-card:nth-child(7),
.space-reveal.revealed .projects-grid > .project-card:nth-child(4),
.space-reveal.revealed .skills-matrix-grid > .matrix-card:nth-child(4) {
  transition-delay: 0.32s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.space-reveal.revealed .projects-grid > .project-card:nth-child(5) {
  transition-delay: 0.40s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.space-reveal.revealed .projects-grid > .project-card:nth-child(6) {
  transition-delay: 0.48s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- 7. Cosmic Card Hover & Glow Animations ---------- */
.project-card, .matrix-card, .pipeline-card, .telemetry-card, .composer-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover, .matrix-card:hover, .pipeline-card:hover, .telemetry-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 36px -8px rgba(56, 189, 248, 0.25), 0 0 30px rgba(168, 85, 247, 0.22);
}

/* Project Filter Tabs Cosmic Transition */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.38));
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

/* Global Smooth HTML Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body clipping to prevent any horizontal micro-scrollbars */
body {
  overflow-x: clip;
}

/* Hyperspace Warp Mode Screen Warp Flare */
body.warp-engaged {
  animation: warpSpeedJitter 0.15s ease-in-out infinite alternate;
}

@keyframes warpSpeedJitter {
  0% { filter: hue-rotate(0deg) saturate(1.1); }
  100% { filter: hue-rotate(8deg) saturate(1.25); }
}

/* ---------- 8. Reduced Motion Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .space-reveal,
  .pipeline-grid > .pipeline-card,
  .projects-grid > .project-card,
  .skills-matrix-grid > .matrix-card,
  .telemetry-grid > .telemetry-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .celestial-planet, .celestial-satellite, .hero-astronaut-drift, .btn-warp {
    animation: none !important;
  }
  body.warp-engaged {
    animation: none !important;
  }
}

/* ==========================================================================
   AI COPILOT AGENT CHAT WIDGET & ON-PAGE SECTION (A.N.I.R.B.A.N)
   ========================================================================== */

/* 1. Navbar & Hero AI Controls */
.nav-ai-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon-cyan) !important;
  font-weight: 600;
}

.ai-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulseBeacon 1.8s infinite;
}

.btn-nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-ai:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

.btn-ai-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25), 0 0 15px rgba(168, 85, 247, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ai-hero:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(168, 85, 247, 0.55));
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45), 0 0 25px rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

/* 2. Dedicated On-Page AI Copilot Section */
.ai-agent-section {
  position: relative;
  z-index: 5;
  padding: 5.5rem 0;
}

.ai-neon-badge {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--neon-cyan);
}

.ai-copilot-card {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 24px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(56, 189, 248, 0.15);
}

/* AI Sidebar */
.ai-copilot-sidebar {
  padding: 1.8rem 1.6rem;
  background: rgba(12, 18, 34, 0.7);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ai-bot-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ai-bot-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.ai-bot-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ai-bot-ring.ring-1 {
  width: 64px;
  height: 64px;
  border: 1px dashed rgba(56, 189, 248, 0.5);
  animation: rotateRing 12s linear infinite;
}
.ai-bot-ring.ring-2 {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(244, 63, 94, 0.4);
  animation: rotateRingRev 8s linear infinite;
}

.ai-bot-name {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.ai-bot-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #22c55e;
  font-family: var(--font-mono);
}

.ai-bot-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ai-capabilities-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.cap-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.quick-inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.embed-ai-chip {
  text-align: left;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.embed-ai-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateX(4px);
}

/* AI Main Chat Console */
.ai-copilot-main {
  display: flex;
  flex-direction: column;
  height: 580px;
  background: rgba(6, 9, 17, 0.6);
}

.ai-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.console-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.console-tab .tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.console-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.console-btn:hover {
  color: var(--text-primary);
  border-color: var(--neon-cyan);
}

.embed-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.embed-ai-messages::-webkit-scrollbar {
  width: 6px;
}
.embed-ai-messages::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.embed-ai-prompts-row {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
  scrollbar-width: none;
}
.embed-ai-prompts-row::-webkit-scrollbar {
  display: none;
}

.prompt-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.prompt-pill:hover {
  background: var(--bg-elevated);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
}

.embed-ai-input-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.4rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.embed-ai-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
}

.embed-ai-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.embed-ai-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* 3. Floating AI Launcher with Visible Pill & Greeting Bubble */
.ai-agent-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.ai-launcher-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-speech-teaser {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 0.55rem 0.9rem;
  border-radius: 14px 14px 2px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  animation: teaserBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes teaserBounce {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.teaser-sparkle {
  color: var(--neon-cyan);
}

.teaser-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.2rem;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.teaser-close:hover {
  color: var(--text-primary);
}

.ai-launcher-orb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem 0.45rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  background: rgba(12, 18, 34, 0.92);
  background-image: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25), transparent 70%);
  color: var(--neon-cyan);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.ai-launcher-orb:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.6);
}

.orb-hologram {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.6);
  pointer-events: none;
}

.orb-ring.ring-outer {
  width: 54px;
  height: 54px;
  animation: rotateRing 10s linear infinite;
}

.orb-ring.ring-inner {
  width: 48px;
  height: 48px;
  border-color: rgba(244, 63, 94, 0.5);
  animation: rotateRingRev 7s linear infinite;
}

.orb-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-status-dot {
  position: absolute;
  top: 4px;
  left: 36px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite;
}

.orb-visible-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

/* 4. Floating AI Chat Modal */
.ai-chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 400px;
  height: 570px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88) translateY(24px);
  transform-origin: bottom right;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

.ai-chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar-badge {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.ai-online-ping {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid var(--bg-elevated);
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.ai-header-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.ai-badge-chip {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--neon-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 700;
}

.ai-header-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.ai-header-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-tool-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  transform: scale(1.08);
}

/* Settings Drawer */
.ai-settings-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
  padding: 0.9rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ai-settings-drawer.open {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.ai-settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.ai-settings-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.ai-settings-help code {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.ai-key-input-row {
  display: flex;
  gap: 0.5rem;
}

.ai-key-input-row input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.ai-key-input-row input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.ai-key-status {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: #22c55e;
}

/* Messages Area */
.ai-messages-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}

.ai-messages-wrap::-webkit-scrollbar {
  width: 5px;
}
.ai-messages-wrap::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  font-size: 0.86rem;
  line-height: 1.48;
  word-break: break-word;
  animation: msgAppear 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgAppear {
  0% { opacity: 0; transform: translateY(8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-msg.user {
  align-self: flex-end;
}

.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 0.7rem 0.95rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.bot .ai-msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 16px 16px 16px 4px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ai-msg-bubble p {
  margin-bottom: 0.45rem;
}
.ai-msg-bubble p:last-child {
  margin-bottom: 0;
}

.ai-msg-bubble strong {
  color: var(--neon-cyan);
}

.ai-msg-bubble ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0;
}
.ai-msg-bubble li {
  margin-bottom: 0.25rem;
}

.ai-msg-bubble code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #38bdf8;
}

.ai-msg-bubble a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-msg-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.ai-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-action-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
}

.ai-msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.2rem;
}
.ai-msg.user .ai-msg-time {
  text-align: right;
}

/* Typing Indicator */
.ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.65rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
  animation: typingBounce 1.3s infinite ease-in-out both;
}
.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Chips Bar */
.ai-chips-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.08);
  scrollbar-width: none;
}
.ai-chips-bar::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ai-chip:hover {
  background: var(--bg-elevated);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

/* Input Form */
.ai-input-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.ai-chat-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-chat-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.ai-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4);
}

.ai-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.6), 0 0 15px rgba(56, 189, 248, 0.5);
}

/* Mobile Adjustments for AI Chat */
@media (max-width: 860px) {
  .ai-copilot-card {
    grid-template-columns: 1fr;
  }
  .ai-copilot-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .ai-copilot-main {
    height: 500px;
  }
}

@media (max-width: 480px) {
  .ai-agent-container {
    bottom: 14px;
    right: 14px;
  }
  .orb-visible-pill span:not(.pill-dot) {
    display: inline;
  }
  .ai-speech-teaser {
    display: none;
  }
  .ai-chat-window {
    right: 10px;
    bottom: 74px;
    width: calc(100vw - 20px);
    height: calc(100vh - 90px);
    max-height: 560px;
    border-radius: 18px;
  }
  .embed-ai-input-bar {
    padding: 0.75rem 1rem;
  }
  .embed-ai-send-btn span {
    display: none;
  }
}
