/* ==========================================================================
   SIVANESAN B - MASTERCLASS AI ENGINEER PORTFOLIO 2026
   Modern Design System: Glassmorphism 2.0, Ambient Tracing, Bento Grids
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0b10;
  --bg-secondary: #12141e;
  --bg-tertiary: #191c2b;
  --surface-glass: rgba(18, 20, 30, 0.65);
  --surface-glass-card: rgba(22, 25, 38, 0.55);
  --surface-glass-hover: rgba(30, 34, 52, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f0ff;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;

  --gradient-brand: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --glow-primary: 0 0 35px rgba(0, 240, 255, 0.25);
  --glow-purple: 0 0 35px rgba(139, 92, 246, 0.25);
  --glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --surface-glass-card: rgba(255, 255, 255, 0.85);
  --surface-glass-hover: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(14, 165, 233, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.6) 100%);
  --glow-primary: 0 0 30px rgba(14, 165, 233, 0.2);
  --glow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Animated Canvas */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

[data-theme="light"] #neural-canvas {
  opacity: 0.25;
}

/* Subtle Ambient Gradient Blobs */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: floatOrb 22s infinite alternate ease-in-out;
}
.glow-1 { top: -100px; left: -100px; background: #00f0ff; }
.glow-2 { bottom: 10%; right: -150px; background: #8b5cf6; animation-delay: -7s; }
.glow-3 { top: 40%; left: 30%; background: #ec4899; opacity: 0.12; animation-delay: -14s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(-50px, 40px) scale(0.9); }
}

/* Custom Interactive Cursor */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.05s ease-out;
  z-index: 9999;
  mix-blend-mode: difference;
}
.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
}
body.hovering .custom-cursor {
  width: 54px;
  height: 54px;
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
}
@media (hover: none) or (pointer: coarse) {
  .custom-cursor, .custom-cursor-dot { display: none !important; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1100px;
  height: 64px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
}
.navbar.scrolled {
  top: 0.75rem;
  height: 58px;
  background: rgba(10, 11, 16, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.brand-text span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width var(--transition-fast);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background: var(--surface-glass-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--gradient-brand);
  color: #050608;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
  transition: all var(--transition-fast);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.55);
}

.mobile-toggle {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}
.status-ping {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: relative;
}
.status-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: pulsePing 2s infinite;
}
@keyframes pulsePing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-typewriter {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.typed-text {
  color: var(--accent-cyan);
  font-weight: 600;
}
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background: var(--accent-cyan);
  animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.btn-secondary:hover {
  background: var(--surface-glass-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.hero-stats-row {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Right Profile & Floating Badges */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 8px;
  background: var(--gradient-brand);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.35);
  animation: floatAvatar 6s ease-in-out infinite alternate;
}
@keyframes floatAvatar {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-secondary);
}

/* Floating Tech Chips */
.floating-chip {
  position: absolute;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatChip 5s ease-in-out infinite alternate;
}
.floating-chip img, .floating-chip svg {
  width: 20px;
  height: 20px;
}
.chip-1 { top: 10%; left: -25px; animation-delay: 0s; }
.chip-2 { bottom: 15%; left: -30px; animation-delay: -2s; }
.chip-3 { top: 25%; right: -25px; animation-delay: -3.5s; }
.chip-4 { bottom: 5%; right: 10px; animation-delay: -1.2s; }

@keyframes floatChip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Section Common Styling */
section {
  padding-block: 6rem;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}
.section-subtitle-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}
.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Bento Grid System for About / Highlights */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--surface-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 100px) var(--mouse-y, 100px), rgba(0, 240, 255, 0.08), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.bento-card:hover::before {
  opacity: 1;
}
.bento-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-card);
}

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

/* Award Highlight Banner */
.award-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.award-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  flex-shrink: 0;
}
.award-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.award-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Key Metrics Grid */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-block: 2.5rem;
}
.metric-box {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast);
}
.metric-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}
.metric-box .metric-value {
  font-size: 2.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}
.metric-box .metric-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--surface-glass);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}
.filter-btn.active {
  background: var(--accent-cyan);
  color: #050608;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

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

.project-card {
  background: var(--surface-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), var(--glow-primary);
}

.project-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img {
  transform: scale(1.05);
}
.project-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-highlights {
  list-style: none;
  margin-bottom: 1.25rem;
}
.project-highlights li {
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}
.project-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag-item {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.project-link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* Research & Publication Feature Card */
.pub-hero-card {
  background: var(--surface-glass-card);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.pub-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.pub-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-info-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pub-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}
.pub-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.pub-authors {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.pub-meta-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--accent-cyan);
}
.pub-abstract {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Skills Matrix */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skill-category-card {
  background: var(--surface-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}
.skill-category-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.skill-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
}
.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.skill-pill img {
  width: 16px;
  height: 16px;
}
.skill-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Timeline Experience & Education */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 60%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 2.75rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-node {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}
.timeline-item.education .timeline-node {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
}

.timeline-content-card {
  background: var(--surface-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-fast);
}
.timeline-content-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}
.timeline-date-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}
.timeline-role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.timeline-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}
.timeline-bullets {
  list-style: none;
}
.timeline-bullets li {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Contact Section */
.contact-glass-box {
  background: var(--surface-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.contact-cta-pitch {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.contact-action-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.socials-cluster {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.social-icon-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.4);
}

/* AI Chatbot Widget (Docked Floating Window) */
.chatbot-trigger-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-trigger-btn:hover {
  transform: scale(1.1) rotate(5deg);
}
.chatbot-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: pulsePing 2.5s infinite;
}

.chatbot-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 380px;
  height: 520px;
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
}
.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.chat-status {
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

.chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.88rem;
}
.msg-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  line-height: 1.5;
}
.msg-bubble.bot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-bubble.user {
  background: var(--accent-cyan);
  color: #050608;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
}
.suggestion-chip {
  white-space: nowrap;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.suggestion-chip:hover {
  background: var(--accent-cyan);
  color: #000;
}

.chat-input-area {
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}
.chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
}
.chat-input:focus {
  border-color: var(--accent-cyan);
}
.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 20, 32, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-typewriter {
    justify-content: center;
  }
  .hero-description {
    margin-inline: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .pub-hero-card {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-8,
  .bento-card.col-span-4,
  .bento-card.col-span-6 {
    grid-column: span 12;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .navbar {
    width: calc(100% - 1.5rem);
  }
  .chatbot-window {
    width: calc(100% - 2rem);
    right: 1rem;
    bottom: 5.5rem;
    height: 480px;
  }
  .avatar-wrapper {
    width: 260px;
    height: 260px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
