/* ==========================================================================
   Ashton Angel - Personal Promotion Portfolio Design System
   Stack: Vanilla HTML5, CSS3, Vanilla JavaScript (No Frameworks)
   Target Deployment: Vercel Static Hosting
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables & Theme System --- */
:root {
  /* Color Palette - GitHub Universe Deep Space Theme (Default) */
  --bg-main: #060913;
  --bg-header: rgba(8, 12, 22, 0.85);
  --bg-card: rgba(15, 22, 36, 0.75);
  --bg-card-hover: rgba(22, 32, 50, 0.85);
  --bg-input: #101726;
  --bg-terminal: #080c16;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(6, 182, 212, 0.45);
  
  --text-title: #f8fafc;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --text-bright: #ffffff;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

/* Light Theme Variables */
[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #e2e8f0;
  --bg-terminal: #0f172a;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-accent: rgba(6, 182, 212, 0.5);
  
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-bright: #020617;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Unified smooth theme transition for all interactive components */
.site-header,
.hero-avatar-card,
.metric-card,
.timeline-card,
.skill-category-card,
.case-study-card,
.info-card,
.vault-card,
.terminal-window,
.contact-btn,
.btn-secondary,
.btn-primary,
.nav-link,
.skill-chip,
.hero-tech-tag,
blockquote {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* Space Theme - Nebula Ambient Glow Layer (Smooth Diffusion, Zero-Lag GPU Rasterization) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 50%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.10) 0%, rgba(6, 182, 212, 0) 50%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0) 55%),
    radial-gradient(circle at 75% 15%, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 45%);
  transition: opacity 0.25s ease;
  will-change: opacity;
}

/* Space Theme - Stardust & Micro-Stars Layer */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(1.5px 1.5px at 100px 150px, rgba(255, 255, 255, 0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 450px, rgba(255, 255, 255, 0.5), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 700px 200px, rgba(6, 182, 212, 0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 950px 600px, rgba(255, 255, 255, 0.6), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1200px 100px, rgba(168, 85, 247, 0.7), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1400px 750px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 500px 850px, rgba(255, 255, 255, 0.4), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 700px, rgba(6, 182, 212, 0.6), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 1500px 900px;
  opacity: 0.65;
  transition: opacity 0.25s ease;
  will-change: opacity;
}

[data-theme="light"] body::before {
  opacity: 0.4;
}

[data-theme="light"] body::after {
  opacity: 0.2;
}

/* Procedural Random Retro Starfield Overlay */
#retro-star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.retro-procedural-star {
  position: absolute;
  user-select: none;
  font-family: var(--font-code);
  line-height: 1;
  opacity: 0.35;
  animation: retroRandomTwinkle ease-in-out infinite alternate;
}

@keyframes retroRandomTwinkle {
  0% {
    opacity: 0.1;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 0 4px currentColor);
  }
  100% {
    opacity: 0.1;
    transform: scale(0.85) rotate(0deg);
  }
}

[data-theme="light"] .retro-procedural-star {
  opacity: 0.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-code);
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-vault-badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
}

.nav-vault-badge:hover, .nav-vault-badge.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent-cyan);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-title);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-title);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  position: relative;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-title);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.tech-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-title);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: var(--font-code);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

/* Avatar Card */
.hero-avatar-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(99, 102, 241, 0.5));
  box-shadow: 0 12px 35px -5px rgba(6, 182, 212, 0.25), 0 0 30px rgba(6, 182, 212, 0.15);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.avatar-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 45px -5px rgba(6, 182, 212, 0.35), 0 0 40px rgba(6, 182, 212, 0.25);
}

.avatar-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-card);
  filter: contrast(0.99) brightness(1.01);
  transition: filter var(--transition-smooth);
}

.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.location-icon {
  color: var(--accent-cyan);
}

/* --- Metrics / Counter Bar --- */
.metrics-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

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

.metric-card h3 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-title);
  font-family: var(--font-code);
  background: linear-gradient(135deg, var(--text-bright), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.metric-card p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Section Formatting --- */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 650px;
  margin: 0.75rem auto 0 auto;
}

/* --- Work Experience Section --- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 2.5rem;
  margin-left: 1.25rem;
}

/* The continuous vertical spine line running along the left side */
.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 8px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue) 70%, rgba(99, 102, 241, 0.2));
  border-radius: var(--radius-pill);
}

.timeline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform var(--transition-smooth);
}

/* Glowing node dot on the left vertical spine line for each career entry */
.timeline-card::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(-2.5rem - 1px);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  transition: all var(--transition-smooth);
  z-index: 2;
}

.timeline-card:hover::after {
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan);
  transform: scale(1.25);
}

.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(6, 182, 212, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.card-body {
  margin-top: 1rem;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-title);
}

.role-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.meta-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

.date-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-title);
}

.experience-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.exp-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.exp-item-trigger {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.exp-item-trigger:hover {
  color: var(--accent-cyan);
}

.exp-triangle {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-family: var(--font-code);
  line-height: 1.5;
  transition: transform 0.25s ease, color 0.25s ease;
  user-select: none;
  margin-top: 0.15rem;
}

.exp-item.expanded .exp-triangle {
  transform: rotate(90deg);
  color: #60a5fa;
  text-shadow: 0 0 8px var(--accent-cyan);
}

.exp-item-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  padding-left: 1.4rem;
}

.exp-item.expanded .exp-item-details {
  max-height: 500px;
  opacity: 1;
  padding-top: 0.25rem;
  padding-bottom: 0.4rem;
}

.exp-item-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(6, 182, 212, 0.25);
}

.exp-item-details ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.exp-item-details ul li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--accent-cyan);
}

/* --- Skills Matrix Section --- */
.skills-search-wrapper {
  max-width: 500px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.skills-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 2.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-title);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.skills-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

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

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-icon {
  color: var(--accent-cyan);
}

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

.skill-chip {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.skill-chip.featured {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
}

.skill-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-title);
}

/* --- Architectural Projects & Highlights --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-50px 0);
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.project-header {
  margin-bottom: 1rem;
}

.project-category {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-highlights {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-body);
}

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

/* --- Interactive Terminal Section --- */
.terminal-wrapper {
  background: var(--bg-terminal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

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

.terminal-quick-cmds {
  display: flex;
  gap: 0.5rem;
}

.cmd-btn {
  font-family: var(--font-code);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-body);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cmd-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #e2e8f0;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.term-line {
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-prompt {
  color: var(--accent-cyan);
  font-weight: bold;
}

.term-success { color: var(--accent-emerald); }
.term-info { color: #60a5fa; }
.term-warning { color: var(--accent-amber); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--font-code);
  font-size: 0.9rem;
}

/* --- Education & Languages Section --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.info-card h3 {
  font-size: 1.25rem;
  color: var(--text-title);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-item {
  margin-bottom: 1.25rem;
}

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

.info-item-title {
  font-weight: 700;
  color: var(--text-title);
  font-size: 1rem;
}

.info-item-sub {
  font-size: 0.875rem;
  color: var(--accent-cyan);
}

.info-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.lang-name {
  font-weight: 600;
  color: var(--text-title);
}

.lang-level {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* --- Contact & Footer Section --- */
.footer-cta-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.footer-cta-card h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1rem;
}

.contact-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-title);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.contact-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  color: var(--text-title);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .nav-links {
    display: none; /* Toggled via mobile menu */
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-avatar-card {
    max-width: 400px;
    margin: 0 auto;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline {
    padding-left: 1.5rem;
    margin-left: 0.25rem;
  }
  .timeline::before {
    left: 4px;
  }
  .timeline-card::after {
    left: calc(-1.5rem - 4px);
    width: 14px;
    height: 14px;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Modal Overlay & Gallery Viewer --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(6, 182, 212, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--text-title);
  font-weight: 700;
}

.modal-close {
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-cyan);
}

.modal-body {
  padding: 1.5rem;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-gallery-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-body);
  text-align: center;
  font-family: var(--font-code);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-main);
}

/* --- Recruiter Vault Styling --- */
.vault-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-smooth);
}

.vault-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
}


