:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary: #4A9EFF;
  --accent: #00D4AA;
  --red: #FF4A4A;
  --text: #e0e0e0;
  --text-muted: #777;
  --text-dim: #444;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-sm: 8px;
}

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

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

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

.hidden {
  display: none !important;
}

.accent {
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--accent);
}

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

/* ═══ CHOICE SCREEN ═══ */
#choice-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .8s, visibility .8s;
}

#choice-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#matrix-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
}

.choice-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.choice-greeting {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  animation: fadeInUp .8s ease both;
}

.choice-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
  animation: fadeInUp .8s ease .2s both;
}

.choice-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  animation: fadeInUp .8s ease .4s both;
}

.pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .6s both;
}

.pill {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  cursor: pointer;
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
}

.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s;
  border-radius: var(--radius);
}

.pill-blue::before {
  background: radial-gradient(circle at center, rgba(74, 158, 255, .15), transparent 70%);
}

.pill-red::before {
  background: radial-gradient(circle at center, rgba(255, 74, 74, .15), transparent 70%);
}

.pill:hover::before {
  opacity: 1;
}

.pill:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .2);
}

.pill-blue:hover {
  box-shadow: 0 8px 40px rgba(74, 158, 255, .2);
}

.pill-red:hover {
  box-shadow: 0 8px 40px rgba(255, 74, 74, .2);
}

.pill-icon {
  font-size: 2.5rem;
}

.pill-label {
  font-size: 1.2rem;
  font-weight: 700;
}

.pill-desc {
  font-size: .8rem;
  color: var(--text-muted);
}

.pill-divider {
  color: var(--text-dim);
  font-size: .9rem;
}

/* ═══ NAVIGATION ═══ */
#info-nav,
#journey-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: .8rem 2rem;
  gap: 1.5rem;
  background: rgba(10, 10, 15, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: transform .3s;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--card);
}

.btn-switch-mode {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: .8rem;
  transition: all .2s;
}

.btn-switch-mode:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ═══ SECTIONS ═══ */
.info-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.6);
}

/* ═══ HERO ═══ */
#hero {
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .07;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(74, 158, 255, .3) 28px, rgba(74, 158, 255, .3) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(0, 212, 170, .15) 60px, rgba(0, 212, 170, .15) 61px);
  animation: spectroShift 8s linear infinite;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

#hero>* {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--primary);
  font-weight: 500;
  min-height: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: .75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #3a8eef;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, .3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

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

.photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--card-border);
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 3px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .75rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-text strong {
  color: var(--text);
}

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color .3s;
}

.stat-card:hover {
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--mono);
}

.stat-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ═══ TIMELINE ═══ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: .5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--text-dim);
  background: var(--bg);
}

.timeline-marker.current {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(74, 158, 255, .4);
}

.timeline-date {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .05em;
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: .25rem 0;
}

.timeline-content h4 {
  font-size: .95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: .5rem;
}

.timeline-project {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .5rem;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  padding: .3rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-muted);
  font-size: .9rem;
}

.timeline-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  /* beautiful pill shape */
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tag:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
  background: rgba(0, 212, 170, 0.04);
}

/* Special highlight for primary skills */
.tag:nth-child(even) {
  border-color: rgba(74, 158, 255, 0.2);
}

/* ═══ PROJECTS ═══ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .3s;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.project-card.featured {
  border-color: rgba(74, 158, 255, .3);
  background: rgba(74, 158, 255, .04);
}

.project-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .2rem .8rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: .25rem;
}

.project-org {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: .75rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.project-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.metric {
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
}

.metric-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ═══ LIVE PIPELINE SIMULATOR SANDBOX ═══ */
.signal-sandbox {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(74, 158, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sandbox-header h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .2rem;
  font-family: var(--mono);
}

.sandbox-header p {
  font-size: .75rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

.sandbox-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 600px) {
  .sandbox-body {
    grid-template-columns: 1fr;
  }
}

.sandbox-controls {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.btn-sandbox {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: .6rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--font);
  text-align: left;
}

.btn-sandbox:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sandbox.active {
  background: rgba(74, 158, 255, 0.08);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.15);
}

#sb-stressed.active {
  background: rgba(255, 74, 74, 0.08);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 74, 74, 0.15);
}

.sandbox-display {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.canvas-container {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: #06060a;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: .5rem;
  position: relative;
  overflow: hidden;
}

.canvas-label {
  font-size: .6rem;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.canvas-container canvas {
  width: 100%;
  height: 60px;
  display: block;
}

.sandbox-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pipeline-flow {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .65rem;
}

.flow-step {
  padding: .15rem .4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  border: 1px solid transparent;
}

.flow-step.done {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.flow-step.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 170, 0.05);
  animation: hintPulse 2s infinite;
}

#sb-state.stressed {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255, 74, 74, 0.05);
}

.flow-arrow {
  color: var(--text-dim);
}

.anomaly-meter {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-muted);
}

.meter-bg {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 12%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .5s ease, background-color .5s ease;
}

#sb-meter.stressed {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.meter-text {
  color: var(--accent);
  font-weight: 700;
}

#sb-percentage.stressed {
  color: var(--red);
}


/* ═══ SKILLS ═══ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

@media (min-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Elegant 2-column grid on desktop */
  }

  .skills-grid>.skill-category:last-child {
    grid-column: span 2;
    /* 5th category stretches across for clean symmetry! */
  }
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(74, 158, 255, 0.25);
  box-shadow: 0 8px 30px rgba(74, 158, 255, 0.05);
  transform: translateY(-2px);
}

.skill-category h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.75rem;
}

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

.skill-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 140px;
  font-weight: 500;
}

.bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.1, 1, 0.1, 1);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
}

.skill-level {
  font-size: 0.75rem;
  color: var(--accent);
  min-width: 35px;
  font-family: var(--mono);
  font-weight: 700;
}

/* ═══ EDUCATION ═══ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s;
}

.edu-card:hover {
  border-color: var(--primary);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.edu-card h3 {
  font-size: 1.15rem;
  margin-bottom: .25rem;
}

.edu-card h4 {
  color: var(--text-muted);
  font-weight: 400;
  font-size: .95rem;
  margin-bottom: .25rem;
}

.edu-location,
.edu-date {
  font-size: .8rem;
  color: var(--text-dim);
}

.edu-grade {
  margin: .5rem 0;
  font-size: .9rem;
}

.edu-courses {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .75rem;
}

.tag-sm {
  background: rgba(74, 158, 255, .08);
  color: var(--text-muted);
  padding: .15rem .5rem;
  border-radius: 3px;
  font-size: .65rem;
}

/* ═══ CONTACT ═══ */
#contact {
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .06;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(74, 158, 255, .5), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 212, 170, .3), transparent);
}

.contact-grid {
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-gradient {
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 158, 255, .35);
  color: #fff;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: all .25s;
  color: var(--text);
  backdrop-filter: blur(8px);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  background: rgba(74, 158, 255, .06);
}

.contact-icon {
  font-size: 1.3rem;
}

/* ═══ FOOTER ═══ */
#footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: .8rem;
  border-top: 1px solid var(--card-border);
}

/* ═══ JOURNEY v2 — 3D ROAD ═══ */
.journey-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, .06);
  border-radius: 2px;
  overflow: hidden;
}

.journey-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--primary));
  border-radius: 2px;
  transition: width .3s;
}

.j-world {
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.j-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  transition: background 1.5s;
  pointer-events: none;
}

.j-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.j-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--c);
  opacity: var(--o);
  width: var(--s);
  height: var(--s);
  left: var(--x);
  animation: jFloat var(--d) linear infinite;
  animation-delay: var(--dl);
}

.j-road {
  position: absolute;
  left: 50%;
  top: 8rem;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
}

.j-road-track {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--red) 0%, var(--primary) 30%, var(--accent) 70%, var(--primary) 100%);
  box-shadow: 0 0 20px rgba(0, 212, 170, .4), 0 0 40px rgba(74, 158, 255, .2);
}

.j-traveler {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  z-index: 10;
  background: radial-gradient(circle, #fff, var(--primary));
  box-shadow: 0 0 24px rgba(74, 158, 255, .8), 0 0 60px rgba(0, 212, 170, .5), 0 0 100px rgba(74, 158, 255, .2);
  animation: travelerPulse 2s ease-in-out infinite;
}

.j-stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  align-items: center;
  padding: 3rem 0;
  min-height: 400px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s, transform .8s;
}

.j-stop.visible {
  opacity: 1;
  transform: translateY(0);
}

.j-left .j-card-3d {
  grid-column: 1;
  grid-row: 1;
  padding-right: 3rem;
}

.j-left .j-node {
  grid-column: 2;
  grid-row: 1;
}

.j-right .j-card-3d {
  grid-column: 3;
  grid-row: 1;
  padding-left: 3rem;
}

.j-right .j-node {
  grid-column: 2;
  grid-row: 1;
}

.j-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 25;
  justify-self: center;
  position: relative;
}

.j-node-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(74, 158, 255, .4);
  position: relative;
  z-index: 26;
}

.j-stop.visible .j-node-ring {
  animation: nodeGlow 2s ease-in-out infinite;
}

.j-node span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid var(--card-border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(74, 158, 255, 0.1);
  transition: all 0.3s ease;
}

/* Side alignment to prevent overlapping the central road */
.j-left .j-node span {
  left: 36px;
}

.j-right .j-node span {
  right: 36px;
}

/* Responsive overrides for smaller viewports where the road is hidden */
@media (max-width: 768px) {
  .j-node {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-self: flex-start;
  }

  .j-node span {
    position: static;
    transform: none;
    font-size: 0.8rem;
  }
}

.j-card-3d {
  perspective: 800px;
}

.j-card-flip {
  position: relative;
  min-height: 420px;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1), box-shadow .4s;
  cursor: pointer;
  outline: none;
}

.j-card-flip.flipped {
  transform: rotateY(180deg);
}

.j-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: rgba(14, 14, 22, .9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

/* Per-theme card accents */
[data-theme="amber"] .j-face {
  border-color: rgba(218, 165, 32, .2);
}

[data-theme="amber"] .j-front h3 {
  color: #daa520;
}

[data-theme="blue"] .j-face {
  border-color: rgba(74, 158, 255, .2);
}

[data-theme="blue"] .j-front h3 {
  color: var(--primary);
}

[data-theme="green"] .j-face {
  border-color: rgba(0, 212, 170, .2);
}

[data-theme="green"] .j-front h3 {
  color: var(--accent);
}

[data-theme="gold"] .j-face {
  border-color: rgba(255, 200, 50, .2);
}

[data-theme="gold"] .j-front h3 {
  color: #ffc832;
}

.j-front {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.j-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

.j-front h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: .75rem 0 .25rem;
  letter-spacing: -.02em;
}

.j-teaser {
  color: var(--text-muted);
  font-size: 1rem;
}

.j-hint {
  font-size: .85rem;
  color: var(--primary);
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  letter-spacing: .03em;
  animation: hintPulse 2s ease-in-out infinite;
}

.j-back h4 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: var(--primary);
}

.j-back p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: .75rem;
}

.j-highlight {
  color: var(--accent) !important;
  font-weight: 600;
  font-style: italic;
}

.j-card-flip:not(.flipped):hover {
  transform: rotateY(8deg) rotateX(4deg) scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 30px rgba(74, 158, 255, .1);
}

.j-artifact {
  width: 180px;
  height: 180px;
  margin: 0 auto 0.5rem;
  perspective: 600px;
}

.cube {
  width: 140px;
  height: 140px;
  margin: 20px auto;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 14s linear infinite;
}

.cube:hover {
  animation-duration: 40s;
}

.cube-f {
  position: absolute;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--mono);
  color: rgba(218, 165, 32, .7);
  border-radius: 10px;
}

.cube-f {
  background: linear-gradient(135deg, rgba(218, 165, 32, .08), rgba(218, 165, 32, .02));
  border: 1px solid rgba(218, 165, 32, .18);
}

.c1 {
  transform: translateZ(70px);
}

.c2 {
  transform: rotateY(180deg) translateZ(70px);
}

.c3 {
  transform: rotateY(-90deg) translateZ(70px);
}

.c4 {
  transform: rotateY(90deg) translateZ(70px);
}

.c5 {
  transform: rotateX(90deg) translateZ(70px);
}

.c6 {
  transform: rotateX(-90deg) translateZ(70px);
}

.orbit {
  width: 160px;
  height: 160px;
  margin: 10px auto;
  position: relative;
}

.orbit-core {
  position: absolute;
  inset: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  filter: drop-shadow(0 0 12px rgba(74, 158, 255, .4));
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  top: 0;
  left: 75px;
  animation: orbitSpin 4s linear infinite;
  box-shadow: 0 0 12px var(--primary);
}

.orbit-dot.d2 {
  animation-delay: -1.33s;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.orbit-dot.d3 {
  animation-delay: -2.66s;
  background: #ff6b6b;
  box-shadow: 0 0 12px #ff6b6b;
}

.wave-viz {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 160px;
  padding-top: 10px;
}

.wb {
  width: 10px;
  border-radius: 5px;
  background: linear-gradient(0deg, var(--accent), var(--primary));
  box-shadow: 0 0 8px rgba(0, 212, 170, .3);
  animation: waveBar 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * .1s);
}

.portal {
  width: 160px;
  height: 160px;
  margin: 10px auto;
  position: relative;
}

.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid;
  animation: portalSpin 6s linear infinite;
}

.r1 {
  border-color: rgba(255, 200, 50, .4);
  border-width: 3px;
}

.r2 {
  inset: 16px;
  border-color: rgba(74, 158, 255, .35);
  animation-direction: reverse;
  animation-duration: 4s;
  border-width: 2px;
}

.r3 {
  inset: 32px;
  border-color: rgba(200, 150, 255, .3);
  animation-duration: 8s;
}

.portal-glow {
  position: absolute;
  inset: 45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 50, .15), rgba(74, 158, 255, .08), transparent);
  animation: portalPulse 2s ease-in-out infinite;
}

.j-end {
  text-align: center;
  padding: 4rem 0 2rem;
  color: var(--text-dim);
}

.j-end span {
  font-size: 2rem;
  display: block;
  margin-bottom: .5rem;
  color: var(--primary);
}

.j-end p {
  font-size: .85rem;
}


/* ═══ CHATBOT ═══ */
.chatbot-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(74, 158, 255, .3), 0 0 15px rgba(0, 212, 170, .4);
  transition: transform .2s, box-shadow .2s;
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(74, 158, 255, .5), 0 0 25px rgba(0, 212, 170, .6);
}

.fab-icon {
  font-size: 1.5rem;
}

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

.chatbot-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 380px;
  max-height: 500px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  transition: all .3s;
}

.chatbot-panel.closed {
  transform: translateY(20px) scale(.95);
  opacity: 0;
  pointer-events: none;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(135deg, rgba(74, 158, 255, .08), rgba(0, 212, 170, .05));
}

.chatbot-header h3 {
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.chatbot-header h3::before {
  content: '🤖';
  font-size: 1.1rem;
}

.chatbot-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.chat-msg {
  max-width: 85%;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--card);
  border: 1px solid var(--card-border);
  align-self: flex-start;
  padding-left: 2.5rem;
  position: relative;
}

.chat-msg.bot::before {
  content: 'M';
  position: absolute;
  left: .5rem;
  top: .6rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4rem;
  text-align: center;
}

.chat-msg.user {
  background: rgba(74, 158, 255, .12);
  border: 1px solid rgba(74, 158, 255, .2);
  align-self: flex-end;
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(74, 158, 255, .1);
}

/* Typing indicator */
.chat-typing {
  align-self: flex-start;
  padding: .75rem 1rem .75rem 2.5rem;
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.chat-typing::before {
  content: 'M';
  position: absolute;
  left: .5rem;
  top: .6rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: .6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4rem;
  text-align: center;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce .6s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: .15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .3s;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.suggestion {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: .3rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}

.suggestion:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chatbot-input {
  display: flex;
  padding: .5rem;
  gap: .5rem;
  border-top: 1px solid var(--card-border);
}

.chatbot-input input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .85rem;
  outline: none;
}

.chatbot-input input:focus {
  border-color: var(--primary);
}

.chatbot-input button {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s;
}

.chatbot-input button:hover {
  background: #3a8eef;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(8px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes spectroShift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-29px);
  }
}

@keyframes starDrift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(40px);
  }
}

@keyframes waveformScan {

  0%,
  100% {
    transform: scaleX(.6);
    opacity: .1;
  }

  50% {
    transform: scaleX(1);
    opacity: .2;
  }
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes typingBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes cubeRotate {
  0% {
    transform: rotateX(0) rotateY(0);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes orbitSpin {
  0% {
    transform: rotate(0deg) translateX(75px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(75px) rotate(-360deg);
  }
}

@keyframes waveBar {

  0%,
  100% {
    height: 20px;
  }

  50% {
    height: calc(30px + var(--i) * 12px);
  }
}

@keyframes portalSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes portalPulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(.9);
  }

  50% {
    opacity: .6;
    transform: scale(1.1);
  }
}

@keyframes nodeGlow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(74, 158, 255, .3);
  }

  50% {
    box-shadow: 0 0 24px rgba(74, 158, 255, .7);
  }
}

@keyframes jFloat {
  0% {
    transform: translateY(100vh);
  }

  100% {
    transform: translateY(-20px);
  }
}

@keyframes travelerPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 24px rgba(74, 158, 255, .7), 0 0 60px rgba(74, 158, 255, .3);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 40px rgba(74, 158, 255, .9), 0 0 80px rgba(74, 158, 255, .4);
  }
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: .7;
  }

  50% {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeInUp .6s ease both;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-photo {
    order: -1;
  }

  .photo-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .hero-summary {
    margin: 0 auto 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

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

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

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

  .nav-links {
    display: none;
  }

  .pills {
    flex-direction: column;
  }

  .pill {
    min-width: 250px;
  }

  .chatbot-panel {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5rem;
  }

  .j-stop {
    grid-template-columns: 1fr;
  }

  .j-left .j-card-3d,
  .j-right .j-card-3d {
    grid-column: 1;
    padding: 0 1rem;
  }

  .j-left .j-node,
  .j-right .j-node {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .j-road {
    display: none;
  }

  .j-traveler {
    display: none;
  }
}

/* ═══ BME JOURNEY PATHWAY STYLE ═══ */
.journey-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.jmap-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.jmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.jmap-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(74, 158, 255, 0.12);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(74, 158, 255, 0.25);
}

.jmap-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.jmap-milestone {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jmap-milestone-highlight {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

.jmap-card>p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.jmap-match {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px dashed var(--card-border);
  padding-top: 1rem;
}

.jmap-match h5 {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.jmap-match p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.jmap-match.highlight {
  background: rgba(0, 212, 170, 0.04);
  border-top: 1px dashed rgba(0, 212, 170, 0.2);
}

.jmap-match.highlight h5 {
  color: var(--accent);
}

/* ═══ RECOMMENDATIONS DECK STYLE ═══ */
.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.rec-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: border-color 0.3s;
}

.rec-card:hover {
  border-color: var(--accent);
}

.rec-header {
  margin-bottom: 1.25rem;
}

.rec-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.rec-author span {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  display: block;
}

.rec-author p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.rec-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  position: relative;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(74, 158, 255, 0.3);
  margin-bottom: 1.5rem;
}

.rec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rec-contact {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ═══ INTERACTIVE HOBBIES STYLE ═══ */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hobby-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.hobby-icon-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hobby-icon-header span {
  font-size: 1.8rem;
}

.hobby-icon-header h4 {
  font-size: 1.15rem;
}

.hobby-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Basketball Game Box */
.basketball-box {
  background: #06060a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#canvas-basketball {
  background: radial-gradient(circle, #0e0e16, #06060a);
  border-radius: var(--radius-sm);
  cursor: crosshair;
  max-width: 100%;
}

.basket-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.basket-stats strong {
  color: var(--accent);
  font-size: 1.1rem;
}

/* AI Channels List */
.ai-channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-channel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}

.ai-channel-item:hover {
  background: rgba(74, 158, 255, 0.05);
  border-color: var(--primary);
}

.ch-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.ch-info h5 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.ch-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Podcast Audiophile Deck */
.podcast-deck {
  background: #06060a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pod-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
}

.pod-art {
  font-size: 1.5rem;
  background: rgba(0, 212, 170, 0.1);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
}

.pod-details {
  flex: 1;
  padding-left: 0.75rem;
}

.pod-details h5 {
  font-size: 0.8rem;
  color: var(--text);
}

.pod-details p {
  font-size: 0.65rem;
  color: var(--accent);
  font-family: var(--mono);
}

.btn-play-pod {
  background: var(--accent);
  border: none;
  color: #06060a;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.btn-play-pod:hover {
  transform: scale(1.1);
  background: #fff;
}

.pod-visualizer {
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-pod-spectrum {
  width: 100%;
  height: 100%;
}

.pod-playlist {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pod-track {
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pod-track:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 158, 255, 0.3);
}

.pod-track.active {
  background: rgba(74, 158, 255, 0.08);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.1);
}

/* ═══ CHATBOT HINT CONTAINER ═══ */
.chatbot-hint-container {
  position: fixed;
  bottom: 7.5rem;
  right: 1.5rem;
  z-index: 190;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chatbot-hint-container.hidden {
  opacity: 0;
  transform: translateY(10px);
}

.chatbot-hint-text {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  letter-spacing: 0.02em;
  animation: hintBreathe 2s ease-in-out infinite;
}

.swirl-arrow-svg {
  width: 60px;
  height: 40px;
  margin-right: 2rem;
  margin-top: 2px;
  filter: drop-shadow(0 0 4px var(--accent));
}

@keyframes hintBreathe {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.15);
  }

  50% {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(0, 212, 170, 0.35);
  }
}

@media (max-width: 768px) {
  .chatbot-hint-container {
    display: none;
    /* Hide swirl arrow on mobile to avoid overlapping */
  }
}

/* ═══ CHATBOT AVATAR CONTAINER ═══ */
.chatbot-avatar-container {
  position: fixed;
  bottom: 6rem;
  right: calc(2rem + 395px);
  width: 140px;
  height: 200px;
  z-index: 195;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateX(30px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Triggered when panel is open */
.chatbot-panel:not(.closed)~.chatbot-avatar-container {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.chatbot-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 10px 25px rgba(0, 0, 0, 0.5);
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  object-fit: cover;
  animation: avatarFloat 4s ease-in-out infinite;
}

.avatar-speech-bubble {
  position: relative;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.avatar-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(18, 18, 26, 0.95) transparent;
  display: block;
  width: 0;
}

@keyframes avatarFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes bubblePop {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 900px) {

  /* On tablets/mobiles, let the avatar peek over the top header of the chat panel */
  .chatbot-avatar-container {
    bottom: calc(6rem + 400px - 140px);
    right: 3rem;
    width: 60px;
    height: 60px;
  }

  .chatbot-avatar-img {
    width: 55px;
    height: 55px;
    border-width: 2px;
  }

  .avatar-speech-bubble {
    display: none;
    /* Hide speech bubble on small screens */
  }
}

/* ═══ MAJESTIC SPLASH SCREEN ═══ */
#majestic-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 212, 170, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, #12121d 0%, #06060b 72%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  pointer-events: auto;
  perspective: 1500px;
  transition: opacity .8s ease;
}

#majestic-splash.open {
  opacity: 0;
  pointer-events: none;
}

.splash-window {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, #09090e 0%, #15151f 100%);
  background-image: 
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #09090e 0%, #15151f 100%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  z-index: 2;
  transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.95), 0 0 50px rgba(0,0,0,0.5);
}

.window-left {
  left: 0;
  transform-origin: left center;
}

.window-right {
  right: 0;
  transform-origin: right center;
}

#majestic-splash.open .window-left {
  transform: rotateY(95deg);
  opacity: 0.3;
}

#majestic-splash.open .window-right {
  transform: rotateY(-95deg);
  opacity: 0.3;
}

.splash-content {
  position: relative;
  z-index: 3;
  text-align: center;
  transition: opacity 0.5s ease;
}

#majestic-splash.open .splash-content {
  opacity: 0;
  pointer-events: none;
}

.splash-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: splashFadeIn 2s ease forwards 0.5s;
  line-height: 1.2;
}

.btn-enter {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: splashFadeIn 2s ease forwards 1.5s;
}

.btn-enter:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
  transform: scale(1.05);
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}/* ═══════════════ STITCH PREMIUM UI OVERHAUL CSS ═══════════════ */
@keyframes pulse-cyan {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 20px rgba(0, 242, 255, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 40px rgba(0, 242, 255, 0.4); }
}
@keyframes scanner-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.scanner-container {
    position: absolute; inset: 0; overflow: hidden;
}
.scanner-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, transparent);
    animation: scanner-move 4s linear infinite;
    filter: blur(1px);
    width: 100%;
}
.glass-panel {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.neo-glow-cyan {
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
}
.active-pulse {
    animation: pulse-cyan 3s ease-in-out infinite;
}
.stitch-container {
    text-align: center;
    color: #e5e2e1;
}
.stitch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .stitch-grid { grid-template-columns: 1fr; }
    .stitch-hero-grid { grid-template-columns: 1fr !important; }
}
.stitch-card {
    position: relative;
    background: #1c1b1b;
    border: 1px solid #3a494b;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: all 0.5s;
    height: 400px;
    border-radius: 12px;
}
.stitch-card:hover {
    border-color: rgba(229, 226, 225, 0.4);
}
.stitch-card-neon {
    background: #0e0e0e;
    border-color: rgba(0, 242, 255, 0.2);
}
.stitch-card-neon:hover {
    border-color: #00f2ff;
}
.bg-watermark {
    position: absolute;
    top: 0; right: 0;
    padding: 2rem;
    opacity: 0.1;
    font-size: 3rem;
    font-weight: bold;
    user-select: none;
}
.stitch-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #849495;
}
.stitch-title {
    font-size: 2rem;
    font-weight: 600;
}
.stitch-desc {
    color: #b9cacb;
    font-size: 1rem;
    line-height: 1.5;
}
.bg-glow-blur {
    position: absolute;
    bottom: -6rem; right: -6rem;
    width: 16rem; height: 16rem;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    transition: all 0.5s;
    pointer-events: none;
}
.stitch-card-neon:hover .bg-glow-blur {
    background: rgba(0, 242, 255, 0.2);
}
.btn-stitch-outline {
    width: max-content;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(132, 148, 149, 0.3);
    color: #e5e2e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    border-radius: 4px;
}
.btn-stitch-outline:hover {
    background: #e5e2e1;
    color: #131313;
}
.btn-stitch-neon {
    width: max-content;
    padding: 0.75rem 2rem;
    border: 1px solid #00f2ff;
    color: #00f2ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    border-radius: 4px;
}
.btn-glow-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s;
}
.btn-stitch-neon:hover .btn-glow-bg {
    transform: translateY(0);
}
.stitch-divider {
    height: 1px;
    width: 6rem;
    background: #00f2ff;
    opacity: 0.5;
    margin: 1rem auto 2rem;
}

/* HERO SPECIFIC */
.stitch-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.hero-tag-stitch {
    font-family: 'JetBrains Mono', monospace;
    color: #b9cacb;
    font-size: 0.8rem;
}
.hero-name-stitch {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #00f2ff;
    line-height: 1.1;
}
.hero-desc-stitch {
    color: #b9cacb;
    font-size: 1rem;
}
.photo-frame-stitch {
    width: 280px; height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00f2ff;
    padding: 4px;
    margin: 0 auto;
}
.photo-frame-stitch img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
