﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DESIGN TOKENS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --bg-primary: #05080a; /* Stark Tech Dark */
  --bg-surface: #11171d;
  --bg-card: rgba(17, 23, 29, 0.8);
  --neon-cyan: #1ad6fd; /* Arc Reactor Blue */
  --neon-purple: #ffb300; /* Iron Man Gold */
  --neon-pink: #cc0000; /* Iron Man Red */
  --neon-green: #1ad6fd;
  --text-primary: #e2e8f0;
  --text-muted: #8a9baa;
  --text-dim: #3a3f52;
  --border-subtle: rgba(26, 214, 253, 0.12);
  --border-card: rgba(26, 214, 253, 0.25);

  --glow-cyan:
    0 0 8px rgba(26, 214, 253, 0.6), 0 0 20px rgba(26, 214, 253, 0.3),
    0 0 40px rgba(26, 214, 253, 0.15);
  --glow-purple:
    0 0 8px rgba(255, 179, 0, 0.6), 0 0 20px rgba(255, 179, 0, 0.3);
  --glow-pink: 0 0 8px rgba(204, 0, 0, 0.6), 0 0 20px rgba(204, 0, 0, 0.3);

  --font-display: "Rajdhani", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --font-body: "Rajdhani", sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Selection highlight */
::selection {
  background: rgba(0, 245, 255, 0.25);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 2px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TYPOGRAPHY UTILITIES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.title-prefix {
  color: var(--neon-cyan);
  font-size: 0.85em;
}

.title-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, var(--neon-cyan), transparent);
  opacity: 0.4;
  margin-left: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION WRAPPER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NAVIGATION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 5, 8, 0.95);
  border-bottom-color: rgba(0, 245, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 245, 255, 0.06);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  transition: var(--transition);
}
.nav-logo:hover {
  text-shadow:
    var(--glow-cyan),
    0 0 60px rgba(0, 245, 255, 0.3);
}

.logo-bracket {
  color: var(--neon-purple);
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(26, 214, 253, 0.5);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HERO
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#neural-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* CRT Scanlines overlay */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  opacity: 0.7;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  animation: fadeInDown 0.8s ease both;
}

/* â”€â”€ Glitch Effect â”€â”€ */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: var(--glow-cyan);
  position: relative;
  animation: fadeInDown 0.8s 0.15s ease both;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.glitch::before {
  color: var(--neon-pink);
  animation: glitch-1 4s infinite linear;
}
.glitch::after {
  color: var(--neon-cyan);
  animation: glitch-2 4s infinite linear;
}

@keyframes glitch-1 {
  0%,
  82%,
  100% {
    clip-path: inset(100% 0 0 0);
    transform: none;
  }
  83% {
    clip-path: inset(8% 0 82% 0);
    transform: translate(-4px, 0) skew(-1.5deg);
  }
  85% {
    clip-path: inset(55% 0 35% 0);
    transform: translate(4px, 0) skew(1.5deg);
  }
  87% {
    clip-path: inset(35% 0 55% 0);
    transform: translate(-4px, 0);
  }
  89% {
    clip-path: inset(78% 0 12% 0);
    transform: translate(4px, 0);
  }
  91% {
    clip-path: inset(20% 0 70% 0);
    transform: translate(-3px, 0) skew(-1deg);
  }
  93% {
    clip-path: inset(62% 0 28% 0);
    transform: translate(3px, 0) skew(1deg);
  }
}

@keyframes glitch-2 {
  0%,
  84%,
  100% {
    clip-path: inset(100% 0 0 0);
    transform: none;
  }
  86% {
    clip-path: inset(28% 0 62% 0);
    transform: translate(3px, 0);
  }
  88% {
    clip-path: inset(68% 0 22% 0);
    transform: translate(-3px, 0) skew(1deg);
  }
  90% {
    clip-path: inset(48% 0 42% 0);
    transform: translate(3px, 0) skew(-1deg);
  }
  92% {
    clip-path: inset(18% 0 72% 0);
    transform: translate(-3px, 0);
  }
  94% {
    clip-path: inset(78% 0 14% 0);
    transform: translate(3px, 0);
  }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--neon-cyan);
  margin-top: 1.2rem;
  height: 2rem;
  animation: fadeInDown 0.8s 0.3s ease both;
}

.cursor {
  color: var(--neon-cyan);
  animation: blink 1s step-end infinite;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInDown 0.8s 0.45s ease both;
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon-cyan);
  color: #050508;
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  background: transparent;
  color: var(--neon-cyan);
  box-shadow:
    var(--glow-cyan),
    0 0 50px rgba(26, 214, 253, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  animation: fadeInDown 1s 1s ease both;
}

.scroll-text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

.scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Arc Reactor Canvas ── */
#arc-reactor {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  width: 280px;
  height: 280px;
  filter:
    drop-shadow(0 0 18px rgba(26, 214, 253, 0.5))
    drop-shadow(0 0 40px rgba(255, 179, 0, 0.2));
  animation: reactor-fadein 1.2s 0.5s ease both,
             reactor-float 5s 1.7s ease-in-out infinite;
  opacity: 0;
}

@keyframes reactor-fadein {
  from { opacity: 0; transform: translateY(-50%) scale(0.85); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes reactor-float {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 10px)); }
}

@media (max-width: 900px) {
  #arc-reactor {
    width: 160px;
    height: 160px;
    right: 4%;
    top: 18%;
    transform: none;
    animation: reactor-fadein-mobile 1.2s 0.5s ease both,
               reactor-float-mobile 5s 1.7s ease-in-out infinite;
    filter:
      drop-shadow(0 0 10px rgba(26, 214, 253, 0.4))
      drop-shadow(0 0 24px rgba(255, 179, 0, 0.15));
    opacity: 0;
  }
  @keyframes reactor-fadein-mobile {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 0.7; transform: scale(1); }
  }
  @keyframes reactor-float-mobile {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ABOUT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto auto;
  gap: 2.5rem;
  align-items: start;
}

/* â”€â”€ Avatar â”€â”€ */
.avatar-wrapper {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.avatar-frame {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: avatar-float 4s ease-in-out infinite;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  animation: ring-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(183, 0, 255, 0.35);
  animation: ring-pulse 3s 0.5s ease-in-out infinite;
}

.avatar-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--bg-surface);
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: filter var(--transition);
}

.avatar-frame:hover .avatar-img {
  filter: saturate(1) contrast(1.1);
}

.avatar-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.avatar-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
}

.avatar-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  opacity: 0.7;
  letter-spacing: 0.06em;
}

@keyframes avatar-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    box-shadow:
      0 0 8px rgba(0, 245, 255, 0.4),
      0 0 2px rgba(0, 245, 255, 0.2);
    opacity: 0.7;
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 245, 255, 0.7),
      0 0 6px rgba(0, 245, 255, 0.4);
    opacity: 1;
  }
}

/* Terminal Card */
.terminal-card {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.06);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #28c941;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.t-line {
  color: var(--neon-green);
  margin-top: 0.4rem;
}

.t-out {
  color: var(--text-muted);
  padding-left: 1rem;
}

.t-accent {
  color: var(--neon-cyan) !important;
  opacity: 0.85;
}

.prompt {
  color: var(--neon-cyan);
  margin-right: 0.3rem;
}

.blink-cursor {
  color: var(--neon-cyan);
  animation: blink 1s step-end infinite;
}

/* Stats */
.stats-grid {
  grid-row: 2 / 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(26, 214, 253, 0.2);
  border-radius: 2px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card:hover {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.08);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SKILLS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#skills {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 245, 255, 0.02),
    transparent
  );
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-purple);
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(183, 0, 255, 0.2);
  display: inline-block;
  text-shadow: 0 0 10px rgba(183, 0, 255, 0.5);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  background: rgba(0, 245, 255, 0.03);
  cursor: default;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.badge:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.08);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
}

.project-card:hover {
  border-color: rgba(26, 214, 253, 0.5);
  box-shadow:
    0 0 30px rgba(26, 214, 253, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Animated glow gradient on hover */
.card-glow {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(
    circle at center,
    rgba(0, 245, 255, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.project-card:hover .card-glow {
  opacity: 1;
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon-purple);
  opacity: 0.7;
  z-index: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  z-index: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color var(--transition);
}
.project-card:hover .card-title {
  color: var(--neon-cyan);
}

.card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.3rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(183, 0, 255, 0.35);
  color: var(--neon-purple);
  border-radius: 3px;
  background: rgba(183, 0, 255, 0.05);
  letter-spacing: 0.03em;
}

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  z-index: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.card-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(26, 214, 253, 0.6);
}
.card-link.card-link-live {
  color: var(--neon-purple);
}
.card-link.card-link-live:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.6);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EXPERIENCE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.experience-card {
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 2rem 2.2rem;
  transition: var(--transition);
}

.experience-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(26, 214, 253, 0.08);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-company {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.exp-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 0.2rem;
}

.exp-location {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.exp-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.exp-list li::before {
  content: "\25B9";
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .exp-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .experience-card {
    padding: 1.5rem 1.2rem;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONTACT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#contact {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(204, 0, 0, 0.03),
    transparent
  );
}

.contact-wrapper {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
  opacity: 0.7;
  letter-spacing: 0.14em;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
}

.contact-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
}

.contact-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
  background: rgba(26, 214, 253, 0.05);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-status {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-green 2s ease-in-out infinite;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   KEYFRAME ANIMATIONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse-green {
  0%,
  100% {
    box-shadow:
      0 0 8px var(--neon-green),
      0 0 2px var(--neon-green);
  }
  50% {
    box-shadow:
      0 0 18px var(--neon-green),
      0 0 6px var(--neon-green);
  }
}

@keyframes neon-border {
  0%,
  100% {
    border-color: rgba(0, 245, 255, 0.25);
  }
  50% {
    border-color: rgba(0, 245, 255, 0.55);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .avatar-wrapper {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .terminal-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .stats-grid {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 8, 0.97);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.8rem;
  }
  .nav-link::after {
    display: none;
  }

  .hero-name {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .avatar-frame {
    width: 180px;
    height: 180px;
  }
  .avatar-img {
    width: 160px;
    height: 160px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 4rem 0;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-btn {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AI CHAT WIDGET
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

#chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  height: 52px;
  padding: 0 1.25rem 0 1rem;
  border-radius: 26px;
  border: 1.5px solid var(--neon-cyan);
  background: rgba(5, 8, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--neon-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow:
    var(--glow-cyan),
    0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  animation: pulse-chat 3s ease-in-out infinite;
  white-space: nowrap;
}

.chat-bubble-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.chat-bubble-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#chat-bubble:hover {
  background: rgba(255, 179, 0, 0.15);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 18px rgba(255, 179, 0, 0.7),
    0 0 40px rgba(255, 179, 0, 0.3),
    0 6px 24px rgba(0, 0, 0, 0.5);
}

@keyframes pulse-chat {
  0%,
  100% {
    box-shadow:
      var(--glow-cyan),
      0 4px 20px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 16px rgba(26, 214, 253, 0.8),
      0 0 36px rgba(255, 179, 0, 0.3),
      0 0 64px rgba(204, 0, 0, 0.15),
      0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

#chat-widget {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 1099;
  width: 380px;
  height: 500px;
  background: rgba(5, 8, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(0, 245, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse-green 2s ease-in-out infinite;
}

.chat-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

#chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
  transition: color var(--transition);
}
#chat-close:hover {
  color: var(--neon-pink);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) transparent;
}
.chat-messages::-webkit-scrollbar {
  width: 3px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 2px;
}

.chat-msg {
  max-width: 82%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg.user {
  align-self: flex-end;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.3);
  color: var(--text-primary);
  border-bottom-right-radius: 3px;
  border-right: 3px solid var(--neon-purple);
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(26, 214, 253, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 3px;
  border-left: 3px solid var(--neon-cyan);
}

.chat-msg.typing {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 1rem;
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  opacity: 0.6;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chat-msg.error {
  align-self: flex-start;
  background: rgba(255, 45, 85, 0.08);
  border: 1px solid rgba(255, 45, 85, 0.25);
  color: var(--neon-pink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-bottom-left-radius: 3px;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  background: rgba(26, 214, 253, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
#chat-input::placeholder {
  color: var(--text-dim);
}
#chat-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.2);
}

#chat-send {
  background: var(--neon-cyan);
  border: none;
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #050508;
  box-shadow: var(--glow-cyan);
  transition: var(--transition);
  flex-shrink: 0;
}
#chat-send:hover {
  background: transparent;
  color: var(--neon-cyan);
}
#chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 480px) {
  #chat-widget {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 5rem;
  }
  #chat-bubble {
    bottom: 1.2rem;
    right: 1.2rem;
    height: 44px;
    padding: 0 1rem 0 0.8rem;
  }
  .chat-bubble-label {
    font-size: 0.72rem;
  }
  .chat-bubble-icon {
    font-size: 1.2rem;
  }
}

/* ── PROJECT CARD VISUALS / ANIMATIONS ── */
.card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* 01 — OmniChat: Orbiting nodes */
.visual-multimodal {
  position: relative;
}
.vm-orbit {
  width: 90px;
  height: 90px;
  position: relative;
  animation: orbit-spin 8s linear infinite;
}
.vm-node {
  position: absolute;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.vm-node[style*="--i:0"] {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.vm-node[style*="--i:1"] {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.vm-node[style*="--i:2"] {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.vm-node[style*="--i:3"] {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.vm-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}
@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 02 — RAG: Flow pipeline */
.visual-rag {
  flex-direction: column;
  gap: 0.6rem;
}
.rag-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.rag-box {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}
.rag-vec {
  background: rgba(183, 0, 255, 0.15);
  border-color: rgba(183, 0, 255, 0.4);
  color: var(--neon-purple);
  animation: rag-pulse 2s ease-in-out infinite;
}
.rag-arrow {
  color: rgba(0, 245, 255, 0.4);
  font-size: 0.9rem;
}
.rag-bar {
  width: 80%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.rag-scan {
  width: 33%;
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: rag-slide 1.5s ease-in-out infinite;
}
@keyframes rag-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes rag-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* 03 — Code Review Crew: Bouncing dots + ring */
.visual-crew {
  position: relative;
}
.crew-agents {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 1;
  position: relative;
}
.crew-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
  animation: crew-bounce 2s ease-in-out infinite;
  animation-delay: var(--d);
}
.crew-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px dashed rgba(0, 245, 255, 0.2);
  border-radius: 50%;
  animation: orbit-spin 6s linear infinite;
}
@keyframes crew-bounce {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
  }
  50% {
    transform: translateY(-14px);
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.7);
  }
}

/* 04 — Study Tools MCP: Flashcards */
.visual-mcp {
  perspective: 300px;
}
.mcp-cards {
  display: flex;
  gap: 0.6rem;
}
.mcp-card {
  width: 38px;
  height: 50px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 700;
  background: rgba(0, 245, 255, 0.05);
  animation: mcp-flip 3s ease-in-out infinite;
  animation-delay: calc(var(--j) * 0.5s);
}
@keyframes mcp-flip {
  0%,
  100% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(180deg);
    background: rgba(183, 0, 255, 0.1);
    border-color: rgba(183, 0, 255, 0.4);
  }
}

/* 05 — Lauki FAQ: Chat bubbles */
.visual-chat {
  flex-direction: column;
  gap: 0.4rem;
}
.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 80%;
}
.cb {
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  animation: cb-pop 3s ease-in-out infinite;
  animation-delay: var(--b);
  opacity: 0;
}
.cb-user {
  align-self: flex-end;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--neon-cyan);
}
.cb-bot {
  align-self: flex-start;
  background: rgba(183, 0, 255, 0.1);
  border: 1px solid rgba(183, 0, 255, 0.3);
  color: var(--neon-purple);
}
@keyframes cb-pop {
  0%,
  20% {
    opacity: 0;
    transform: translateY(6px);
  }
  30%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* 06 — Expense Manager: Bar chart */
.visual-chart {
  align-items: flex-end;
  padding-bottom: 0.8rem;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 80px;
}
.bar {
  width: 14px;
  background: linear-gradient(to top, var(--neon-cyan), var(--neon-purple));
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 6px rgba(0, 245, 255, 0.3);
  animation: bar-grow 2s ease-in-out infinite alternate;
  animation-delay: var(--c);
  height: var(--h);
}
@keyframes bar-grow {
  0% {
    opacity: 0.5;
    transform: scaleY(0.6);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* -- Geo 3D (About Section) -- */
#geo-3d {
  display: block;
  width: 140px;
  height: 140px;
  filter:
    drop-shadow(0 0 12px rgba(255, 179, 0, 0.45))
    drop-shadow(0 0 24px rgba(26, 214, 253, 0.18));
  animation: geo-fadein 1s 0.4s ease both;
  opacity: 0;
  flex-shrink: 0;
  align-self: center;
  margin-top: 0.5rem;
}
@keyframes geo-fadein {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 960px) {
  #geo-3d { display: none; }
}

/* -- Float 3D (Cursor follower) -- */
#float-3d {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 500;
  pointer-events: none;
  filter:
    drop-shadow(0 0 8px rgba(255, 179, 0, 0.7))
    drop-shadow(0 0 20px rgba(26, 214, 253, 0.3));
  mix-blend-mode: screen;
  top: 0;
  left: 0;
  opacity: 0.85;
}
@media (max-width: 768px) {
  #float-3d { display: none; }
}

/* -- Chat Widget 3D Mask Background -- */
#chat-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  filter: drop-shadow(0 0 12px rgba(26, 214, 253, 0.3));
}

/* ensure chat content layers above the 3D bg canvas */
.chat-header, .chat-messages, .chat-input-row {
  position: relative;
  z-index: 1;
}
