/* ================================================================
   SNEK.SU — CYBER-TACTICAL HUD & RPG CHARACTER SHEET THEME
   Game Designer & Project Manager Portfolio & Resume
   ================================================================ */

:root {
  /* Color Palette — Cyber Tech & Obsidian */
  --bg-deep: #06090f;
  --bg-main: #0a0e17;
  --bg-surface: #101623;
  --bg-card: #131b2c;
  --bg-card-hover: #1a253c;
  --bg-elevated: #1e2a44;
  --bg-input: #0c121e;

  /* HUD Accent Colors */
  --hud-cyan: #00f0ff;
  --hud-cyan-glow: rgba(0, 240, 255, 0.25);
  --hud-cyan-dim: rgba(0, 240, 255, 0.12);
  --hud-green: #10b981;
  --hud-green-glow: rgba(16, 185, 129, 0.25);
  --hud-amber: #f59e0b;
  --hud-amber-glow: rgba(245, 158, 11, 0.25);
  --hud-purple: #a855f7;
  --hud-purple-glow: rgba(168, 85, 247, 0.25);
  --hud-red: #ef4444;

  /* Text & Borders */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: rgba(148, 163, 184, 0.16);
  --border-hud: rgba(0, 240, 255, 0.3);
  --border-active: #00f0ff;

  /* Typography */
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', ui-monospace, monospace;

  /* Layout & Corners */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1280px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* Ambient cyber grid background */
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    radial-gradient(ellipse at 15% 10%, rgba(0, 240, 255, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 55%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

/* Custom Tactical Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.22);
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--hud-cyan);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.25) var(--bg-deep);
}

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

/* Monospace font utility */
.hud-mono, .badge-tag, .chip, .status-pill, .timeline-period, .hud-stat-num {
  font-family: var(--font-mono);
}

/* ================================================================
   TACTICAL TOP NAVBAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.nav-brand .brand-logo {
  color: var(--hud-cyan);
  text-shadow: 0 0 12px var(--hud-cyan-glow);
}

.brand-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--hud-cyan-dim);
  border: 1px solid var(--border-hud);
  color: var(--hud-cyan);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--hud-cyan);
  background: rgba(0, 240, 255, 0.06);
}

.nav-link.has-badge::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hud-green);
  box-shadow: 0 0 8px var(--hud-green);
  animation: pulse-dot 1.8s infinite;
}

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

.btn-hud-audio {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-hud-audio:hover {
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
}

.btn-hud-audio.active {
  background: var(--hud-cyan-dim);
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-print, .btn-admin {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-print {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.btn-print:hover {
  border-color: var(--text-main);
  color: #fff;
}

.btn-admin {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--hud-cyan);
}
.btn-admin:hover {
  background: var(--hud-cyan);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 16px var(--hud-cyan-glow);
}

/* ================================================================
   HERO // RPG CHARACTER SHEET & TACTICAL DOSSIER
   ================================================================ */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.75rem;
  align-items: start;
}

/* Character Card (Left Column) */
.char-sheet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  /* Tactical corner accents */
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
}

.char-sheet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--hud-cyan), transparent 80%);
}

.avatar-frame {
  width: 100%;
  position: relative;
  margin-bottom: 1.25rem;
}

.avatar-img-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-hud);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
  background: #000;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* HUD Corner Reticles */
.avatar-reticle {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--hud-cyan);
  pointer-events: none;
}
.avatar-reticle.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.avatar-reticle.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.avatar-reticle.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.avatar-reticle.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.status-badge-wrap {
  text-align: center;
  margin-top: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* RPG Stats Bars */
.char-attributes-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
}

.char-attr-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud-cyan);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.stat-name {
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.78rem;
}

.stat-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

.stat-fill.cyan   { background: linear-gradient(90deg, #00f0ff, #38bdf8); box-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }
.stat-fill.green  { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.stat-fill.amber  { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.stat-fill.purple { background: linear-gradient(90deg, #a855f7, #c084fc); box-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
.stat-fill.red    { background: linear-gradient(90deg, #ef4444, #f87171); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

/* Dossier Content (Right Column) */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tagline-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tagline-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hud-cyan);
  background: var(--hud-cyan-dim);
  border: 1px solid var(--border-hud);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

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

.hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hud-cyan);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-contacts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem 0.35rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-contact-link:hover {
  color: #fff;
}

.hero-contact-item:hover {
  border-color: var(--hud-cyan);
  color: #fff;
  background: rgba(0, 240, 255, 0.05);
}

/* Copy Buttons */
.btn-copy-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}

.btn-copy-contact:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-copy-contact:active {
  transform: scale(0.96);
}

.btn-copy-contact.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--hud-green) !important;
  color: var(--hud-green) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-copy-contact .copy-icon {
  flex-shrink: 0;
}

.hero-about {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  max-width: 820px;
}

.hero-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.chip strong {
  color: #fff;
}

.chip-icon {
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Tactical HUD Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
}

.btn-primary {
  background: var(--hud-cyan);
  color: #040810;
  border: 1px solid var(--hud-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  background: #7ef5ff;
  border-color: #7ef5ff;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  background: var(--bg-surface);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}

.btn-glow-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--hud-green);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}
.btn-glow-green:hover {
  background: var(--hud-green);
  color: #000;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  margin-bottom: 2.25rem;
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hud-cyan);
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 780px;
}

/* ================================================================
   SPECIAL SECTION: PLAYABLE DEMOS SHOWCASE
   ================================================================ */
.demos-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

.demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.demo-card:hover {
  border-color: var(--card-accent, var(--hud-cyan));
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.demo-card-media {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.demo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.demo-card:hover .demo-card-media img {
  transform: scale(1.04);
}

.demo-live-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(16, 185, 129, 0.9);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.demo-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.demo-card-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--hud-cyan);
  margin-bottom: 0.75rem;
}

.demo-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.demo-card-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-launch-demo {
  flex: 1;
  background: var(--card-accent, var(--hud-green));
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-launch-demo:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 16px var(--card-accent, var(--hud-green));
}

.btn-demo-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-demo-details:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   PORTFOLIO SECTION // MISSION BOARD
   ================================================================ */
.portfolio-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.categories-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--hud-cyan-dim);
  border-color: var(--border-hud);
  color: var(--hud-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  min-width: 260px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--hud-cyan);
  box-shadow: 0 0 12px var(--hud-cyan-dim);
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

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

/* Project Cards */
.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  border-color: var(--card-accent, var(--hud-cyan));
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.12);
}

.card-media {
  position: relative;
  height: 190px;
  background: #000;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.media-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: #fff;
}

.media-badge.video {
  color: var(--hud-cyan);
  border-color: var(--border-hud);
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.card-role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--card-accent, var(--hud-cyan));
  margin-bottom: 0.65rem;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.btn-details {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.project-card:hover .btn-details {
  color: var(--hud-cyan);
}

.card-link-out {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card-link-out:hover {
  background: var(--card-accent, var(--hud-cyan));
  color: #000;
  border-color: var(--card-accent, var(--hud-cyan));
}

.card-link-out.btn-playable-link {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--hud-green);
  color: #34d399;
}
.card-link-out.btn-playable-link:hover {
  background: var(--hud-green);
  color: #000;
}

/* ================================================================
   SKILL TREE & SPECIFICATIONS SECTION
   ================================================================ */
.skills-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(ellipse at 85% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
}

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

.skill-branch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--branch-accent, var(--hud-cyan));
}

.skill-branch-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.branch-icon {
  font-size: 1.5rem;
}

.branch-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.branch-tier {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--branch-accent, var(--hud-cyan));
  margin-left: auto;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.skills-nodes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-node-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.skill-node-pill:hover {
  border-color: var(--branch-accent, var(--hud-cyan));
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.skill-node-pill .node-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--branch-accent, var(--hud-cyan));
}

/* ================================================================
   RESUME // CAMPAIGN TIMELINE
   ================================================================ */
.resume-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.resume-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.resume-timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3.5rem;
}

.resume-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--hud-cyan), rgba(0, 240, 255, 0.1) 90%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
  padding-bottom: 0.5rem;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--hud-cyan);
  box-shadow: 0 0 12px var(--hud-cyan-glow);
  transition: var(--transition);
}

.timeline-item.current .timeline-dot {
  background: var(--hud-green);
  border-color: #fff;
  box-shadow: 0 0 16px var(--hud-green);
}

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

.timeline-company {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-company a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
.timeline-company a:hover {
  color: var(--hud-cyan);
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-current {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--hud-green);
  color: #34d399;
}

.timeline-period {
  font-size: 0.82rem;
  color: var(--hud-cyan);
  font-weight: 600;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hud-amber);
  margin-bottom: 0.75rem;
}

.timeline-duties {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-duties li {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
  position: relative;
  padding-left: 1.2rem;
}

.timeline-duties li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--hud-cyan);
  font-family: var(--font-mono);
}

/* Education & Languages */
.edu-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* ================================================================
   CONTACT // DIRECT TRANSMISSION
   ================================================================ */
.contact-section {
  padding: 4.5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hud);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.contact-card::before {
  content: 'DIRECT COMM // FREQ 104.2';
  position: absolute;
  top: -12px;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--bg-deep);
  color: var(--hud-cyan);
  padding: 0 0.75rem;
  border: 1px solid var(--border-hud);
  border-radius: 4px;
}

.contact-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 300px;
}

.contact-link-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.contact-link-row .btn-contact {
  flex: 1;
}

.contact-row-copy {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.contact-row-copy:hover {
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
}

.btn-contact {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-telegram {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
}
.btn-telegram:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.6);
}

.btn-email {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
}
.btn-email:hover {
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
  background: rgba(0, 240, 255, 0.06);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-deep);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--hud-cyan);
}

.footer-admin-link {
  color: var(--hud-cyan) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ================================================================
   PROJECT DETAIL MODAL
   ================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-hud);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.05);
}

.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: #000;
}

.modal-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.modal-content {
  padding: 2rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--hud-cyan);
  margin-bottom: 1.25rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.modal-meta-item .meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.modal-meta-item .meta-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.modal-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.modal-duties-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-duties-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-duties-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--hud-cyan);
  font-weight: 700;
  font-size: 1.05rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.btn-play-game {
  background: var(--hud-green) !important;
  border-color: var(--hud-green) !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

/* ================================================================
   RESPONSIVE DESIGN (MOBILE & TABLETS)
   ================================================================ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .char-sheet-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .edu-lang-grid {
    grid-template-columns: 1fr;
  }
  .demos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    height: auto;
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0 0.25rem;
    justify-content: flex-start;
  }
  .hero-name {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   HUD TOAST NOTIFICATIONS (CLIPBOARD COPY FEEDBACK)
   ================================================================ */
.hud-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 15, 30, 0.94);
  border: 1px solid var(--hud-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), 0 8px 32px rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  z-index: 99999;
  pointer-events: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  backdrop-filter: blur(10px);
}
.hud-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .hero-contact-item .copy-label {
    display: none;
  }
  .hero-contact-item .btn-copy-contact {
    padding: 0.22rem 0.35rem;
  }
  .hud-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}

/* ================================================================
   PRINT STYLESHEET (CLEAN CV / PDF EXPORT)
   ================================================================ */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .navbar, .btn-hud-audio, .btn-print, .btn-admin, .hero-actions, .filters-bar, .modal-backdrop, footer, .demos-section {
    display: none !important;
  }
  .char-sheet-card, .info-card, .timeline-item {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
  }
  .hero-name, .section-title, .timeline-company, .timeline-role {
    color: #000 !important;
  }
  .hero-about, .timeline-duties li, .stat-name {
    color: #333 !important;
  }
}
