/* ===================================================================
   Aryan Goyal - Ultra High-Tech Cyber-OS Portfolio (v4.2.0)
   Theme: Sci-Fi HUD, 3D Cyber-Luxe, Neural Glassmorphism & Neon Mesh
   =================================================================== */

:root {
  /* Default Cyber Theme */
  --bg-space: #030712;
  --bg-surface: rgba(11, 17, 32, 0.78);
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 62, 0.9);
  --bg-terminal: #050b14;

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.45);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.45);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.45);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.45);

  --border-glass: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(56, 189, 248, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease-out;
}

/* Theme 2: Matrix Hacker Green */
[data-theme="matrix"] {
  --bg-space: #020b05;
  --bg-surface: rgba(4, 20, 10, 0.85);
  --bg-card: rgba(6, 26, 14, 0.8);
  --bg-card-hover: rgba(10, 38, 20, 0.9);
  --accent-cyan: #34d399;
  --accent-cyan-glow: rgba(52, 211, 153, 0.5);
  --accent-purple: #10b981;
  --accent-purple-glow: rgba(16, 185, 129, 0.5);
  --border-highlight: rgba(52, 211, 153, 0.6);
}

/* Theme 3: Solar Cyber Gold */
[data-theme="solar"] {
  --bg-space: #0c0702;
  --bg-surface: rgba(26, 16, 4, 0.85);
  --bg-card: rgba(33, 20, 5, 0.8);
  --bg-card-hover: rgba(48, 29, 8, 0.9);
  --accent-cyan: #fbbf24;
  --accent-cyan-glow: rgba(251, 191, 36, 0.5);
  --accent-purple: #f97316;
  --accent-purple-glow: rgba(249, 115, 22, 0.5);
  --border-highlight: rgba(251, 191, 36, 0.6);
}

/* Theme 4: Quantum Indigo Deep */
[data-theme="quantum"] {
  --bg-space: #030414;
  --bg-surface: rgba(9, 12, 38, 0.85);
  --bg-card: rgba(14, 18, 54, 0.8);
  --bg-card-hover: rgba(22, 28, 78, 0.9);
  --accent-cyan: #818cf8;
  --accent-cyan-glow: rgba(129, 140, 248, 0.5);
  --accent-purple: #c084fc;
  --accent-purple-glow: rgba(192, 132, 252, 0.5);
  --border-highlight: rgba(129, 140, 248, 0.6);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-space);
}

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

/* Cyber HUD Grid Background Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Three.js Background Canvas Container */
#three-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography & Neons */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, var(--accent-cyan) 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Sci-Fi HUD Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(10px);
}

.badge.pulse-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseNeon 1.8s infinite ease-in-out;
}

@keyframes pulseNeon {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px #34d399; }
  50% { transform: scale(0.7); opacity: 0.4; box-shadow: 0 0 4px #34d399; }
}

/* High-Tech Glass Panels with Border Beams */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 25px 60px -10px var(--accent-cyan-glow);
}

/* Sci-Fi HUD Corner Brackets */
.hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent-cyan);
  pointer-events: none;
  opacity: 0.7;
}
.hud-tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.hud-tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.hud-bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.hud-br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* ===================================================================
   Top HUD Bar & Navigation
   =================================================================== */
.hud-top-bar {
  width: 100%;
  background: rgba(3, 7, 18, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 101;
  position: relative;
}

.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-item span {
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Audio Visualizer Spectrum */
.audio-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.spectrum-bar {
  width: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  animation: equalize 1s infinite alternate ease-in-out;
}
.spectrum-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.spectrum-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.spectrum-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.spectrum-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }
.spectrum-bar:nth-child(5) { height: 75%; animation-delay: 0.15s; }

@keyframes equalize {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Navigation Menu */
.navbar {
  position: sticky;
  top: 1rem;
  max-width: 1240px;
  margin: 0.75rem auto;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-hex {
  width: 42px;
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  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.6rem;
}

/* Theme Switcher Dropdown / Buttons */
.theme-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.theme-pill {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  margin: 0 2px;
  transition: transform var(--transition-fast);
}
.theme-pill:hover { transform: scale(1.2); }
.pill-cyber { background: #38bdf8; }
.pill-matrix { background: #10b981; }
.pill-solar { background: #f59e0b; }
.pill-quantum { background: #818cf8; }

.cmd-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
}

/* High-Tech Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 0 25px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--accent-cyan);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 0 25px var(--accent-purple-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--accent-purple);
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero-section {
  min-height: 92vh;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
  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-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-headline {
  font-size: 3.8rem;
  line-height: 1.08;
  font-weight: 800;
}

.hero-typing-wrap {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.2rem;
  text-shadow: 0 0 15px var(--accent-cyan-glow);
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.4rem;
  background-color: var(--accent-cyan);
  animation: blink 0.8s infinite;
}

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

.hero-bio {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Hero Key Metric Pills */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.stat-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(14px);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.stat-info .stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
}

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

/* Hologram Cyber Core Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hologram-card {
  width: 100%;
  max-width: 440px;
  padding: 2.25rem;
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(22, 33, 62, 0.75));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
  transform-style: preserve-3d;
}

.hologram-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.holo-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
}

.holo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
}

.holo-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1.5px dashed var(--accent-cyan);
  border-radius: 50%;
  animation: rotateRing 10s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.holo-title h3 {
  font-size: 1.35rem;
}

.holo-title p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.holo-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.holo-metric-item {
  background: rgba(0, 0, 0, 0.45);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.holo-metric-item span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.holo-metric-item strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

/* ===================================================================
   Sections & Shared Layout
   =================================================================== */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.section-title {
  font-size: 2.6rem;
  line-height: 1.2;
}

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

/* ===================================================================
   AI Growth Engine Flowchart (Interactive Node Stream)
   =================================================================== */
.engine-flow-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flow-node-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-node-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.flow-node-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   LinkedIn Intelligence & Thought Vault Feed
   =================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.post-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.post-title {
  font-size: 1.25rem;
  line-height: 1.35;
  color: #ffffff;
  transition: color var(--transition-fast);
}

.post-card:hover .post-title {
  color: var(--accent-cyan);
}

.post-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-metrics {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-metric-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-metric-item i {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

/* ===================================================================
   Career Timeline
   =================================================================== */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), var(--accent-emerald), transparent);
}

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

.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 1.75rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-space);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  z-index: 2;
}

.timeline-content {
  padding: 2rem 2.25rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.35rem;
  color: #ffffff;
}

.timeline-company {
  font-size: 1rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.timeline-kpis {
  display: flex;
  gap: 1rem;
  margin: 0.85rem 0;
}

.timeline-kpi-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.timeline-highlights li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.timeline-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===================================================================
   Growth ROI Simulator
   =================================================================== */
.calculator-card {
  padding: 2.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(22, 33, 62, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.15);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.calc-val-badge {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.calc-results {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-hero {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-hero-val {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.result-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.result-metric-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-metric-box span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.result-metric-box strong {
  display: block;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: #34d399;
  margin-top: 0.2rem;
}

/* ===================================================================
   Projects Showcase
   =================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.project-image-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex-grow: 1;
}

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

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-impact {
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.09);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #34d399;
}

.project-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-details-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

/* ===================================================================
   Skills Matrix
   =================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.category-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-header h3 {
  font-size: 1.25rem;
}

.skill-bar-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
}

.skill-bar-label span:last-child {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.skill-bar-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.skill-progress-bg {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

/* ===================================================================
   Contact Hub & Modals
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-smooth);
}

.contact-link-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  transform: translateX(6px);
}

.contact-link-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Modals */
.modal-overlay, .terminal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(18px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open, .terminal-modal.open {
  display: flex;
  animation: modalFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

/* Terminal Styling */
.terminal-box {
  width: 100%;
  max-width: 720px;
  background: var(--bg-terminal);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px var(--accent-cyan-glow);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-dots { display: flex; gap: 0.4rem; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.terminal-log { line-height: 1.5; color: #94a3b8; }
.terminal-log.system { color: var(--accent-cyan); font-weight: bold; }
.terminal-log.success { color: #34d399; }
.terminal-log.error { color: #f87171; }
.terminal-log.highlight { color: #f59e0b; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-prompt { color: var(--accent-cyan); font-weight: bold; }
.terminal-input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

/* Printable Resume Sheet */
.cv-sheet {
  background: #ffffff;
  color: #0f172a;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}

.cv-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cv-header h1 { color: #0f172a; font-size: 2.2rem; }
.cv-contacts { font-size: 0.85rem; color: #475569; display: flex; flex-direction: column; gap: 0.2rem; text-align: right; }
.cv-section { margin-bottom: 1.5rem; }
.cv-section-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: #0f172a; border-bottom: 1px solid #cbd5e1; padding-bottom: 0.3rem; margin-bottom: 0.75rem; }
.cv-entry { margin-bottom: 1rem; }
.cv-entry-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.95rem; color: #0f172a; }
.cv-subhead { font-size: 0.85rem; color: #2563eb; font-weight: 600; }
.cv-list { margin-top: 0.4rem; padding-left: 1.2rem; font-size: 0.85rem; color: #334155; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .calc-grid, .contact-grid, .posts-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .engine-flow-container { grid-template-columns: repeat(2, 1fr); }
  .hero-headline { font-size: 3rem; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-typing-wrap { font-size: 1.1rem; }
  .hero-stats-grid, .engine-flow-container { grid-template-columns: 1fr; }
  .cv-header { flex-direction: column; text-align: left; }
  .cv-contacts { text-align: left; margin-top: 0.5rem; }
}
