/* 
  Developer Portfolio Style System
  Design: Cyberpunk/Modern Minimal Glassmorphism
  Author: Antigravity AI Code Assistant for Nick Dubale
*/

/* --- Theme Declarations --- */
:root {
  /* Common variables */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'Fira Code', monospace;
  --transition-speed: 0.3s;
  --transition-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Core Brand Colors */
  --cyan: hsl(180, 100%, 46%);
  --cyan-rgb: 0, 255, 235;
  --emerald: hsl(145, 95%, 45%);
  --emerald-rgb: 6, 224, 115;
  --violet: hsl(265, 95%, 65%);
  --violet-rgb: 157, 51, 255;
  --gray: hsl(215, 15%, 55%);
}

.dark-theme {
  --bg-primary: hsl(224, 47%, 6%);
  --bg-secondary: hsl(224, 47%, 9%);
  --bg-tertiary: hsl(223, 47%, 12%);
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 72%);
  --text-muted: hsl(215, 15%, 50%);
  --border-color: hsla(217, 32%, 18%, 0.8);
  --glass-bg: rgba(10, 15, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-glow: rgba(255, 255, 255, 0.02);
  --glow-color: rgba(157, 51, 255, 0.15);
  --header-bg: rgba(10, 15, 30, 0.75);
  --input-bg: rgba(5, 8, 18, 0.6);
  --console-bg: hsl(224, 50%, 4%);
}

.light-theme {
  --bg-primary: hsl(210, 40%, 98%);
  --bg-secondary: hsl(210, 40%, 95%);
  --bg-tertiary: hsl(210, 40%, 91%);
  --text-primary: hsl(224, 47%, 12%);
  --text-secondary: hsl(215, 25%, 35%);
  --text-muted: hsl(215, 15%, 55%);
  --border-color: hsla(217, 30%, 85%, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-glow: rgba(0, 0, 0, 0.01);
  --glow-color: rgba(157, 51, 255, 0.06);
  --header-bg: rgba(255, 255, 255, 0.8);
  --input-bg: rgba(255, 255, 255, 0.9);
  --console-bg: hsl(222, 35%, 9%);
  
  /* Brighten cyan and violet for readability on light BG */
  --cyan: hsl(190, 100%, 40%);
  --violet: hsl(265, 85%, 55%);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

canvas#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--cyan) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-violet { color: var(--violet) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-red { color: hsl(0, 85%, 60%) !important; }
.text-green { color: hsl(140, 85%, 50%) !important; }

/* --- Structure and Layouts --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- Glassmorphic Panels --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 0 var(--glass-glow);
  border-radius: var(--radius-md);
  transition: transform var(--transition-speed) var(--transition-elastic), 
              box-shadow var(--transition-speed) ease, 
              border-color var(--transition-speed) ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3), 0 0 20px 0 var(--glow-color);
}

/* --- Navigation Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-speed) ease, border var(--transition-speed) ease;
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-bracket {
  color: var(--cyan);
  transition: color var(--transition-speed) ease;
}

.logo-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo:hover .logo-bracket {
  color: var(--violet);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%);
  transition: width var(--transition-speed) ease;
}

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

.nav-link-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
  background: rgba(157, 51, 255, 0.12);
  border: 1px solid rgba(157, 51, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  animation: pulse-border 2s infinite;
}

.nav-link-badge:hover {
  background: rgba(157, 51, 255, 0.2);
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  transition: color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.sun-icon { display: none; width: 18px; height: 18px; }
.moon-icon { display: block; width: 18px; height: 18px; }

.light-theme .sun-icon { display: block; }
.light-theme .moon-icon { display: none; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-speed) ease;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-speed) ease;
  font-family: var(--font-sans);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-md {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: hsl(222, 47%, 6%);
  color: white;
  box-shadow: 0 4px 20px rgba(157, 51, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(157, 51, 255, 0.4);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: var(--glass-bg);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 130px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 224, 115, 0.1);
  border: 1px solid rgba(6, 224, 115, 0.2);
  color: var(--emerald);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  align-items: center;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
}

/* Hero Code Visualizer mock */
.hero-visual {
  position: relative;
}

.visual-glowing-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.architecture-card {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.card-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.window-controls {
  display: flex;
  gap: 6px;
}

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

.win-dot.red { background-color: #ff5f56; }
.win-dot.yellow { background-color: #ffbd2e; }
.win-dot.green { background-color: #27c93f; }

.card-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-body {
  padding: 24px;
}

.console-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #abb2bf;
}

.code-keyword { color: #c678dd; }
.code-comment { color: #5c6370; font-style: italic; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }
.code-class { color: #e5c07b; }
.code-func { color: #61afef; }

.visual-footer {
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}

/* --- Skill Matrix Section --- */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-category {
  padding: 32px;
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
  transition: transform var(--transition-speed) ease;
}

.skill-category:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.skill-category h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-list li::before {
  content: '→';
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--transition-speed) ease;
}

.skill-list li:hover::before {
  color: var(--cyan);
  transform: translateX(4px);
}

/* --- Project Cards Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--accent-rgb), 0.1);
}

.project-banner {
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-violet { background: rgba(157, 51, 255, 0.08); color: var(--violet); border-color: rgba(157, 51, 255, 0.2); }
.tag-emerald { background: rgba(6, 224, 115, 0.08); color: var(--emerald); border-color: rgba(6, 224, 115, 0.2); }
.tag-cyan { background: rgba(0, 255, 235, 0.08); color: var(--cyan); border-color: rgba(0, 255, 235, 0.2); }

.project-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-emoji {
  font-size: 1.5rem;
}

.project-dir {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.project-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: bold;
}

.project-links {
  margin-top: auto;
}

/* --- Simulator Section --- */
.sandbox-section {
  background: rgba(0, 0, 0, 0.1);
}

.simulator-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.simulator-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 16px 0 16px;
  gap: 8px;
  overflow-x: auto;
}

.sim-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.sim-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.sim-tab.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  border-bottom: 1px solid var(--bg-secondary);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-violet { background-color: var(--violet); }
.dot-emerald { background-color: var(--emerald); }
.dot-cyan { background-color: var(--cyan); }

.simulator-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 480px;
}

.simulator-panel {
  padding: 30px;
}

.panel-controls {
  border-right: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.05);
}

.sim-controls-content {
  display: none;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.sim-controls-content.active {
  display: flex;
}

.sim-controls-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.control-help {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--violet);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.light-theme select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.trade-log-selector, .csv-dataset-selector, .csv-command-selector, .document-selector, .doc-query-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-log-selector label, .csv-dataset-selector label, .csv-command-selector label, .document-selector label, .doc-query-selector label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trade-stats-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.preview-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.metric-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

.query-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.suggestion-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.suggestion-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Spinner anim */
.spinner {
  animation: rotate 1s linear infinite;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.spinner circle {
  stroke-dasharray: 42;
  stroke-dashoffset: 35;
}

.hidden {
  display: none !important;
}

/* Right Console screen */
.panel-screen {
  background: var(--console-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #abb2bf;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.screen-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.screen-indicator.busy {
  background-color: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}

.screen-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.screen-action-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
}

.screen-action-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.screen-terminal {
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.terminal-line {
  line-height: 1.5;
  white-space: pre-wrap;
}

.terminal-output-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 10px 0;
}

/* --- Experience Timeline --- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 31px;
  width: 2px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
}

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

.timeline-badge {
  position: absolute;
  top: 6px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  z-index: 2;
}

.timeline-badge.bg-cyan { background-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.timeline-badge.bg-emerald { background-color: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.timeline-badge.bg-violet { background-color: var(--violet); box-shadow: 0 0 10px var(--violet); }
.timeline-badge.bg-gray { background-color: var(--gray); }

.timeline-content {
  padding: 24px;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: center;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  color: white;
}

.method-icon.bg-cyan { background: rgba(0, 255, 235, 0.15); color: var(--cyan); }
.method-icon.bg-violet { background: rgba(157, 51, 255, 0.15); color: var(--violet); }
.method-icon.bg-emerald { background: rgba(6, 224, 115, 0.15); color: var(--emerald); }

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

.method-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.method-value a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.contact-form-container {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

textarea.form-control {
  resize: vertical;
}

.form-success-alert {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(6, 224, 115, 0.15);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 40px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-container p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --- Animations --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(157, 51, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(157, 51, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(157, 51, 255, 0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .simulator-body {
    grid-template-columns: 1fr;
  }
  
  .panel-controls {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 60px 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links, .nav-actions .btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
