/* Modern CSS Variables & Resets */
:root {
  --bg-obsidian: #08090c;
  --bg-card: rgba(13, 16, 23, 0.45);
  --bg-card-hover: rgba(17, 24, 39, 0.7);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(6, 182, 212, 0.4);
  
  --bg-header: rgba(8, 9, 12, 0.5);
  --bg-header-shrink: rgba(8, 9, 12, 0.95);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-header-shrink: 0 10px 40px rgba(0, 0, 0, 0.5);
  
  --bg-console: rgba(13, 16, 23, 0.7);
  --bg-console-btn: rgba(255, 255, 255, 0.02);
  --border-console: rgba(255, 255, 255, 0.08);
  --shadow-console: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  --primary-violet: #7c3aed;
  --primary-teal: #06b6d4;
  --primary-indigo: #4f46e5;
  --primary-teal-glow: rgba(6, 182, 212, 0.15);
  --primary-violet-glow: rgba(124, 58, 237, 0.15);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --success-green: #10b981;
  --warning-gold: #f59e0b;
  --error-red: #ef4444;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --header-height-initial: 90px;
  --header-height-shrink: 64px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

[data-theme="light"] {
  --bg-obsidian: #f8fafc; /* crisp, clean premium slate-50 canvas */
  --bg-card: #ffffff; /* solid premium white card backgrounds to eliminate any gray card look */
  --bg-card-hover: #ffffff;
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(6, 182, 212, 0.5);
  
  --bg-header: rgba(255, 255, 255, 0.85); /* glowing glass-like light header */
  --bg-header-shrink: rgba(255, 255, 255, 0.98); /* solid elegant light header on scroll */
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.04); /* extremely soft, elegant light shadows */
  --shadow-card-hover: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-header-shrink: 0 10px 30px rgba(15, 23, 42, 0.05);

  --bg-console: #ffffff; /* premium solid white console background in light mode */
  --bg-console-btn: rgba(15, 23, 42, 0.03); /* clean contrast button in light mode */
  --border-console: rgba(15, 23, 42, 0.08);
  --shadow-console: 0 20px 50px rgba(15, 23, 42, 0.06);

  --primary-violet: #6d28d9;
  --primary-teal: #0891b2;
  --primary-indigo: #4338ca;
  --primary-teal-glow: rgba(8, 145, 178, 0.15);
  --primary-violet-glow: rgba(109, 40, 217, 0.15);
  
  --text-primary: #0f172a;
  --text-muted: #334155;
  --text-dark: #64748b;
  
  --success-green: #059669;
  --warning-gold: #d97706;
  --error-red: #dc2626;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-teal) var(--bg-obsidian);
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-teal);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Performance Background Canvas */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

/* Container limits */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Helper Text Formatting & Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--primary-teal);
}

.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Glassmorphism Panel style */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-card-hover);
}

/* Icons styling */
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Button aesthetics */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 9999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-indigo) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-glow-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary-teal);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-glow-mini:hover {
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

/* ---------------------------------------------------- */
/* Premium Shrinking Header */
/* ---------------------------------------------------- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-initial);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--primary-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-teal);
  animation: logo-glow 2s infinite alternate;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-violet));
  transition: var(--transition-fast);
}

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

/* CSS Scroll-driven shrinking header layout */
@keyframes shrink {
  to {
    height: var(--header-height-shrink);
    background: var(--bg-header-shrink);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-header-shrink);
  }
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  #main-header {
    animation: shrink auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* ---------------------------------------------------- */
/* Hero Section */
/* ---------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height-initial) + 40px);
  padding-bottom: 60px;
  position: relative;
}

.hero-glow-back {
  position: absolute;
  width: 40%;
  height: 50%;
  top: 15%;
  right: 10%;
  background: radial-gradient(circle, var(--primary-teal-glow) 0%, var(--primary-violet-glow) 50%, transparent 100%);
  filter: blur(60px);
  z-index: -1;
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge-container {
  margin-bottom: 24px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glow-teal {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--primary-teal);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--success-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-green);
  animation: pulse-live 1.5s infinite;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-primary:hover .icon-arrow {
  transform: translateX(4px);
}

.micro-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-glass);
  padding-top: 32px;
}

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

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interactive Hero Panel */
.interactive-glass-card {
  background: var(--bg-console);
  border: 1px solid var(--border-console);
  border-radius: 12px;
  box-shadow: var(--shadow-console);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.interactive-glass-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.3);
}

.card-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-console-btn);
  border-bottom: 1px solid var(--border-glass);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background-color: var(--error-red); }
.window-dot.yellow { background-color: var(--warning-gold); }
.window-dot.green { background-color: var(--success-green); }

.console-title {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.interactive-console-body {
  padding: 24px;
  font-family: var(--font-code);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cmd-cyan {
  color: var(--primary-teal);
}

.code-output {
  margin-top: 12px;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.divider-line {
  height: 1px;
  background: var(--border-glass);
  margin: 20px 0;
}

.card-hint {
  font-family: var(--font-body);
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quick-trigger-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-trigger-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-console-btn);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.quick-trigger-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(4px);
  color: var(--primary-teal);
}

.icon-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-violet);
  box-shadow: 0 0 8px var(--primary-violet);
  display: inline-block;
}

.icon-node.pulse {
  animation: pulse-live 1.5s infinite;
}

.icon-node.bg-teal {
  background-color: var(--primary-teal);
  box-shadow: 0 0 8px var(--primary-teal);
}

.icon-node.bg-indigo {
  background-color: var(--primary-indigo);
  box-shadow: 0 0 8px var(--primary-indigo);
}

/* ---------------------------------------------------- */
/* Section Header */
/* ---------------------------------------------------- */
.section-header {
  max-width: 600px;
  margin-bottom: 60px;
}

.section-header.margin-top {
  margin-top: 100px;
}

.sub-heading {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* ---------------------------------------------------- */
/* AI Hub Hub Grid Layout */
/* ---------------------------------------------------- */
.ai-hub-section {
  padding: 100px 0;
  position: relative;
}

.ai-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* -------------------- Chatbot Style -------------------- */
.chatbot-container {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  height: 100%;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-glass);
}

.avatar-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--success-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success-green);
  position: relative;
}

.avatar-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success-green);
  animation: pulse-live 2s infinite;
}

.avatar-info {
  display: flex;
  flex-direction: column;
}

.avatar-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.avatar-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.chat-messages {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 350px;
}

.msg {
  display: flex;
  max-width: 80%;
}

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

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

.msg-bubble {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg.bot .msg-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-bottom-left-radius: 2px;
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(79, 70, 229, 0.25) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-bottom-right-radius: 2px;
  color: #fff;
}

.prompt-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 24px;
}

.prompt-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.prompt-pill:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
  color: #c084fc;
}

.chat-input-bar {
  display: flex;
  padding: 16px 24px 24px;
  gap: 12px;
}

.chat-input-bar input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.chat-input-bar input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.chat-send-btn {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-indigo) 100%);
  border: none;
  color: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.04);
}

.chat-send-btn svg {
  width: 18px;
  height: 18px;
}

/* -------------------- n8n Workflow Simulator -------------------- */
.workflow-container {
  display: flex;
  flex-direction: column;
}

.workflow-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 12px;
}

.glow-indigo {
  background-color: var(--primary-indigo);
  box-shadow: 0 0 8px var(--primary-indigo);
}

.font-code {
  font-family: var(--font-code);
}

.badge-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.badge-status.active {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning-gold);
}

.badge-status.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success-green);
}

.workflow-canvas {
  height: 220px;
  position: relative;
  background-color: #0b0d12;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.workflow-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.nodes-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.node-box {
  width: 105px;
  background: rgba(17, 24, 39, 0.9);
  border: 1.5px solid #1e293b;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.node-box:hover {
  transform: translateY(-2px);
}

.node-box.active {
  border-color: var(--warning-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.node-box.success {
  border-color: var(--success-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.node-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.node-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
}

.bg-blue { background-color: #3b82f6; }
.bg-indigo { background-color: #6366f1; }
.bg-violet { background-color: #8b5cf6; }
.bg-teal { background-color: #14b8a6; }

.node-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-status {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.node-box.active .node-status { color: var(--warning-gold); }
.node-box.success .node-status { color: var(--success-green); }

.workflow-connections {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.wire {
  stroke: #1e293b;
  stroke-width: 3;
  fill: none;
  transition: stroke 0.4s ease;
}

.wire-pulse {
  display: none;
  stroke-dasharray: 8, 12;
  stroke-linecap: round;
}

@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

.workflow-terminal {
  flex-grow: 1;
  background-color: #050608;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.terminal-bar {
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.bar-title {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  overflow-y: auto;
  max-height: 180px;
  flex-grow: 1;
}

.log-row {
  margin-bottom: 6px;
}

.log-row.info { color: var(--text-dark); }
.log-row.success { color: var(--success-green); }
.log-row.warn { color: var(--warning-gold); }

/* ---------------------------------------------------- */
/* Skills & Compatibility Gauge Section */
/* ---------------------------------------------------- */
.skills-section {
  padding: 100px 0;
  position: relative;
}

.recruiter-tool {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 40px;
  margin-bottom: 60px;
  border-radius: 20px;
}

.tool-badge {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-teal);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.tool-heading {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.tool-para {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.matcher-inputs {
  display: flex;
  gap: 12px;
}

.matcher-inputs input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}

.matcher-inputs input:focus {
  border-color: var(--border-focus);
}

.tool-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-left: 1px solid var(--border-glass);
  padding-left: 40px;
}

.compatibility-gauge {
  width: 140px;
  height: 140px;
  position: relative;
}

.radial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.gauge-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.match-details {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  width: 100%;
}

.match-placeholder {
  color: var(--text-dark);
}

.match-grid-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.match-tag-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-green);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Skills Category Card Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skills-card {
  padding: 32px;
}

.card-icon-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-icon.color-teal { color: var(--primary-teal); }
.card-icon.color-violet { color: var(--primary-violet); }
.card-icon.color-indigo { color: var(--primary-indigo); }

.skills-card h4 {
  font-size: 1.25rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.skill-name {
  color: var(--text-primary);
  font-weight: 500;
}

.skill-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-heading);
}

.skill-level.high {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-teal);
}

.skill-level.mid {
  background: rgba(124, 58, 237, 0.1);
  color: #c084fc;
}

.skill-level.low {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}


/* ---------------------------------------------------- */
/* Timeline Section Styling */
/* ---------------------------------------------------- */
.experience-section {
  padding: 100px 0;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-teal) 0%, var(--primary-indigo) 50%, #1e293b 100%);
}

.timeline-card {
  position: relative;
  padding: 32px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 38px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid #64748b;
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-dot.glow-teal { border-color: var(--primary-teal); box-shadow: 0 0 10px var(--primary-teal); }
.timeline-dot.glow-indigo { border-color: var(--primary-indigo); box-shadow: 0 0 10px var(--primary-indigo); }
.timeline-dot.glow-violet { border-color: var(--primary-violet); box-shadow: 0 0 10px var(--primary-violet); }

.timeline-card:hover .timeline-dot {
  transform: scale(1.3);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-period {
  color: var(--text-primary);
}

.timeline-location::before {
  content: '•';
  margin-right: 16px;
  color: var(--text-dark);
}

.job-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.job-company {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.job-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.job-bullet-list {
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.job-bullet-list strong {
  color: var(--text-primary);
}

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

.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}

.timeline-card:hover .tech-tag {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------- */
/* Education Section */
/* ---------------------------------------------------- */
.education-section {
  padding: 100px 0;
  position: relative;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.credential-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cred-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cred-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}

.cred-badge.bg-violet { background-color: var(--primary-violet); }
.cred-badge.bg-teal { background-color: var(--primary-teal); }
.cred-badge.bg-indigo { background-color: var(--primary-indigo); }

.cred-institution {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cred-title {
  font-size: 1.15rem;
  line-height: 1.3;
}

.cred-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------- */
/* Contact Section */
/* ---------------------------------------------------- */
.contact-section {
  padding: 100px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding: 48px;
  border-radius: 24px;
}

.contact-heading {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-para {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  font-size: 0.9rem;
  align-items: center;
}

.info-label {
  font-weight: 600;
  width: 120px;
  color: var(--text-muted);
}

.info-link {
  color: var(--primary-teal);
  font-weight: 500;
}

.info-link:hover {
  text-decoration: underline;
}

.info-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* Connect Console Form */
.contact-form-area {
  display: flex;
  flex-direction: column;
  background: var(--bg-console);
  border: 1px solid var(--border-console);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-console);
}

.terminal-form-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.label-code {
  color: #f43f5e;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-form-body input, .terminal-form-body textarea {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-code);
  font-size: 0.85rem;
  outline: none;
  padding: 4px 8px;
  border-bottom: 1px dashed var(--border-glass);
}

.terminal-form-body input:focus, .terminal-form-body textarea:focus {
  border-bottom-color: var(--primary-teal);
}

.margin-top {
  margin-top: 10px;
}

.form-status-msg {
  padding: 0 24px 24px;
  font-family: var(--font-code);
  font-size: 0.8rem;
}

.form-status-msg.success { color: var(--success-green); }
.form-status-msg.error { color: var(--error-red); }

/* ---------------------------------------------------- */
/* Footer styling */
/* ---------------------------------------------------- */
.portfolio-footer {
  border-top: 1px solid var(--border-glass);
  padding: 32px 0;
  background: rgba(5, 6, 8, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.webmcp-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 6px 14px;
  color: var(--text-muted);
}

.webmcp-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-dark);
  border-radius: 50%;
}

.webmcp-indicator.active {
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--primary-teal);
}

.webmcp-indicator.active .webmcp-dot {
  background-color: var(--primary-teal);
  box-shadow: 0 0 8px var(--primary-teal);
  animation: pulse-live 1.5s infinite;
}

/* ---------------------------------------------------- */
/* Core Keyframes for Motion & Pulsing */
/* ---------------------------------------------------- */
@keyframes logo-glow {
  0% { box-shadow: 0 0 6px rgba(6, 182, 212, 0.4); }
  100% { box-shadow: 0 0 16px rgba(6, 182, 212, 0.9); }
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.5; }
}

/* Scroll Entrance Reveals Fallback (for older browsers) */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adaptive Styling (Media Queries) */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-glow-back {
    width: 60%;
    height: 30%;
    top: 5%;
  }

  .hero-lead {
    margin: 0 auto 40px;
  }

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

  .micro-stats {
    justify-content: center;
  }

  .ai-hub-grid {
    grid-template-columns: 1fr;
  }

  .recruiter-tool {
    grid-template-columns: 1fr;
  }

  .tool-display {
    border-left: none;
    border-top: 1px solid var(--border-glass);
    padding-left: 0;
    padding-top: 40px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  #nav-menu {
    display: none; /* simple burger replacement/mobile simplification */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .timeline-container {
    padding-left: 20px;
  }
  
  .timeline-line {
    left: 0px;
  }
  
  .timeline-dot {
    left: -25px;
  }
}

/* User accessibility adjustments */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .wire-pulse {
    display: none !important;
  }
}

.theme-toggle-btn:hover {
  border-color: var(--primary-teal) !important;
  color: var(--primary-teal) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .sun-icon {
  display: none !important;
}

[data-theme="light"] .moon-icon {
  display: block !important;
}
