/* ══════════════════════════════════════════════════
   SANTOSH REGMI — BLOOMBERG TERMINAL PORTFOLIO
   ══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg: #0a0a0a;
  --bg-alt: #0d0d0d;
  --surface: #111111;
  --surface-hover: #161616;
  --surface-border: #1e1e2e;
  --text: #e0e0e0;
  --text-secondary: #777777;
  --text-muted: #444444;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.15);
  --accent-glow: rgba(0, 255, 136, 0.4);
  --accent-secondary: #ffb800;
  --red: #ff4444;
  --amber: #ffb800;
  --green: #00ff88;
  --font-mono: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 52px;
  --radius: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amber theme override */
[data-theme="amber"] {
  --accent: #ffb800;
  --accent-dim: rgba(255, 184, 0, 0.15);
  --accent-glow: rgba(255, 184, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--text); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

/* ── BOOT OVERLAY — see new styles at bottom ── */

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--accent); }
.brand-bracket {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  letter-spacing: 1px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.nav-clock {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: var(--radius);
  min-width: 85px;
  text-align: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

/* Radial gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.hero-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0, 255, 136, 0.1);
  object-fit: cover;
  transition: box-shadow var(--transition);
}
.hero-avatar:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 255, 136, 0.2);
}

.avatar-status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--green);
  border: 3px solid var(--bg);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.typed-name {
  display: inline;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

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

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.dot-separator {
  color: var(--accent);
  margin: 0 4px;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  transition: all var(--transition);
}
.badge:hover {
  background: rgba(0, 255, 136, 0.25);
  transform: translateY(-2px);
}
.badge i { margin-right: 6px; }

.scroll-indicator {
  display: inline-block;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}
.scroll-indicator:hover {
  color: var(--accent);
}

.scroll-chevron {
  animation: bounceDown 2s ease-in-out infinite;
  font-size: 20px;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ── TICKER ── */
.ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 10px 0;
  z-index: 2;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker:hover { animation-play-state: paused; }

.ticker span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  padding: 0 20px;
  opacity: 0.7;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: 2px;
}

.title-prefix {
  color: var(--accent);
  margin-right: 8px;
}

.title-suffix {
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── TERMINAL PANEL ── */
.terminal-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.terminal-panel:hover {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--surface-border);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--green); }

.panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.panel-body {
  padding: 24px;
}

/* ── ABOUT ── */
.terminal-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.prompt {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

.about-content {
  margin-bottom: 28px;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.stat-value i {
  color: var(--accent);
  margin-right: 6px;
  font-size: 11px;
}

.status-online {
  color: var(--green);
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.15);
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: default;
}
.skill-tag:hover {
  background: rgba(0, 255, 136, 0.25);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
  transform: translateY(-2px);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-dim);
}

.project-card .panel-header {
  justify-content: flex-start;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-badge i { font-size: 6px; }

.status-live {
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
}
.status-live i { animation: pulse 2s ease-in-out infinite; }

.status-sleeping {
  color: var(--amber);
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.project-card .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  gap: 10px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-dim);
}

.btn-outline {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--surface-border);
}
.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── GITHUB ── */
.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.github-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  overflow: hidden;
}

.github-stat-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.github-stat-img:hover { opacity: 1; }

/* ── CONNECT ── */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.connect-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.connect-icon {
  font-size: 22px;
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: all var(--transition);
}
.connect-card:hover .connect-icon {
  color: var(--accent);
  background: var(--accent-dim);
}

.connect-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.connect-platform {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.connect-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.connect-card:hover .connect-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── FOOTER ── */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--surface-border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy, .footer-domain, .footer-built {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-domain { color: var(--accent); }

/* ── SCROLL REVEAL ── */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCANLINE DECORATION (subtle) ── */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}
.section > * { position: relative; z-index: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 8px;
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 14px;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
  }

  .nav-clock { display: none; }

  .hero-avatar {
    width: 110px;
    height: 110px;
  }

  .section { padding: 70px 0; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .github-grid {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .ticker span {
    font-size: 10px;
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    gap: 6px;
  }
  .badge {
    font-size: 10px;
    padding: 5px 10px;
  }
  .project-links {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════
   NEW FEATURES — MATRIX + CATS + FEED + CHAT
   ══════════════════════════════════════════════════ */



/* ── BOOT OVERLAY — LOADING GIF ── */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
}
.boot-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-gif {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}


/* ── SOCIAL FEED ── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.feed-panel {
  display: flex;
  flex-direction: column;
}

.feed-twitter-body {
  min-height: 350px;
  max-height: 500px;
  overflow-y: auto;
  background: var(--bg);
}

/* Twitter timeline override */
.feed-twitter-body .twitter-timeline {
  color-scheme: dark;
}

.feed-linkedin-body {
  flex: 1;
}

.linkedin-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.linkedin-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.linkedin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.linkedin-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.linkedin-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.linkedin-title {
  font-size: 13px;
  color: var(--text-secondary);
}

.linkedin-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.linkedin-loc i {
  color: var(--accent);
  margin-right: 4px;
}

.linkedin-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.linkedin-stats {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.linkedin-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.stat-txt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.linkedin-btn {
  align-self: flex-start;
}

/* ── CAT AI CHAT WIDGET ── */
.cat-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  font-family: var(--font-mono);
}

.cat-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-dim);
}
.cat-chat-toggle:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow);
}

.chat-cat-icon {
  font-size: 28px;
  line-height: 1;
}

.chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

.cat-chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 500px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7);
  animation: chatSlideUp 0.3s ease;
}

.cat-chat-window.open {
  display: flex;
}

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

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--surface-border);
}

.chat-title {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  flex: 1;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}
.chat-close:hover { color: var(--red); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: msgFadeIn 0.3s ease;
}

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

.chat-msg.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
}

.chat-msg.user .msg-avatar {
  background: var(--accent-dim);
}

.msg-bubble {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-msg.user .msg-bubble {
  background: var(--accent-dim);
  border-color: rgba(0, 255, 136, 0.2);
  color: var(--accent);
}

.msg-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.msg-typing span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--surface-border);
  background: var(--bg-alt);
}

.chat-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus {
  border-color: var(--accent);
}
.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  background: var(--accent);
  border: none;
  color: var(--bg);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send:hover {
  background: var(--text);
  transform: scale(1.05);
}
.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── ENHANCED RESPONSIVE ── */
@media (max-width: 768px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
  .linkedin-stats {
    gap: 16px;
  }
  .cat-chat-window {
    width: calc(100vw - 48px);
    right: -12px;
  }
  .cat-chat-toggle {
    width: 52px;
    height: 52px;
  }
  .chat-cat-icon { font-size: 24px; }
}

@media (max-width: 480px) {
  .cat-chat {
    bottom: 16px;
    right: 16px;
  }
  .cat-chat-window {
    width: calc(100vw - 32px);
    right: -8px;
    max-height: 60vh;
  }
  .chat-messages { max-height: 45vh; }
  .linkedin-header { flex-direction: column; text-align: center; }
  .linkedin-stats { justify-content: center; }
  .linkedin-btn { align-self: center; }
  .feed-grid { grid-template-columns: 1fr; }
}

/* Mobile fullscreen chat overlay */
.cat-chat-fullscreen-overlay {
  display: none;
}
.cat-chat-fullscreen-overlay.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  background: var(--bg);
  flex-direction: column;
}
.cat-chat-fullscreen-overlay .chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--surface-border);
}
.cat-chat-fullscreen-overlay .chat-title {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  flex: 1;
  font-family: var(--font-mono);
}
.cat-chat-fullscreen-overlay .chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.cat-chat-fullscreen-overlay .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.cat-chat-fullscreen-overlay .chat-input-wrap {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  border-top: 1px solid var(--surface-border);
  background: var(--bg-alt);
}
.cat-chat-fullscreen-overlay .chat-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  -webkit-appearance: none;
}
.cat-chat-fullscreen-overlay .chat-input:focus {
  border-color: var(--accent);
}
.cat-chat-fullscreen-overlay .chat-send {
  background: var(--accent);
  border: none;
  color: var(--bg);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .hero-name {
    font-size: 28px;
  }
  .hero-badges {
    gap: 4px;
  }
  .badge {
    font-size: 9px;
    padding: 4px 8px;
  }
  .nav-brand { font-size: 16px; }
  .section-title { font-size: 20px; }
  .container { padding: 0 16px; }
  .cat-chat-toggle {
    width: 48px;
    height: 48px;
  }
}
