/* ===========================================================
   Aleksandr Mordanov — CV / dashboard
   Signature: vertical pipeline (git-log / ETL graph) through
   the Experience section, HUD-style stat rail in the hero.
   =========================================================== */

:root{
  --bg-void: #05070d;
  --panel: rgba(11, 17, 29, 0.58);
  --panel-border: rgba(120, 190, 255, 0.16);
  --panel-border-strong: rgba(0, 229, 255, 0.35);
  --accent-cyan: #00e5ff;
  --accent-amber: #ffb020;
  --text-primary: #e9f2ff;
  --text-muted: #8fa3c0;
  --text-dim: #5f7290;
  --line: rgba(0, 229, 255, 0.28);
  --radius: 14px;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.mono{ font-family: var(--font-mono); letter-spacing: 0.02em; }
.dim{ color: var(--text-dim); }

/* ---------- background layers ---------- */
/* Drop your GPT-image background at assets/background.png (or .webp)
   and update the url() below. Anything works: circuit-scapes,
   abstract data flows, a dark cityscape — it shows through the
   scrim and the glass panels. */

.bg-layer{
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-scrim{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(5,7,13,0.15), rgba(5,7,13,0.55) 60%),
    linear-gradient(180deg, rgba(5,7,13,0.35) 0%, rgba(5,7,13,0.72) 100%);
}

.bg-grid{
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(0,229,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.6) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 75%);
}

/* ---------- hero ---------- */

.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
}

.hero-inner{ max-width: 760px; }

.status-line{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px 1px var(--accent-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

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

.hero-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-role{
  font-family: var(--font-mono);
  color: var(--accent-amber);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 0 0 1.75rem;
}

.hero-summary{
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-links{
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.link-chip{
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.link-chip:hover{
  border-color: var(--panel-border-strong);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.stat-rail{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.8rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.stat{ display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.stat-value{
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.stat-unit{ font-size: 1rem; color: var(--text-dim); margin-left: 1px; }

.stat-label{
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.stat-sep{
  width: 1px;
  height: 32px;
  background: var(--panel-border);
}

.scroll-cue{
  position: absolute;
  bottom: 1.8rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ---------- panels ---------- */

main{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.panel{
  padding: 3.2rem 0;
  border-top: 1px solid var(--panel-border);
}

.panel:first-of-type{ border-top: none; }

.panel-title{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.4rem;
}

.tag{
  font-size: 0.72rem;
  color: var(--accent-cyan);
  border: 1px solid var(--panel-border-strong);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.panel-sub{ margin: 0 0 1.8rem; font-size: 0.85rem; }
.panel-sub a{ color: var(--accent-cyan); text-decoration: none; }
.panel-sub a:hover{ text-decoration: underline; }

/* ---------- experience pipeline ---------- */

.pipeline{
  position: relative;
  padding-left: 2rem;
}

.pipeline::before{
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-cyan), rgba(0,229,255,0.05));
}

.pipeline-node{
  position: relative;
  padding-bottom: 2.6rem;
}

.pipeline-node:last-child{ padding-bottom: 0; }

.pipeline-node::before{
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 2px solid var(--accent-cyan);
}

.pipeline-role{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.pipeline-meta{
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
}

.pipeline-date{
  display: inline-block;
  font-size: 0.76rem;
  color: var(--accent-amber);
  margin-bottom: 0.8rem;
}

.pipeline-node ul{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.pipeline-node li{ margin-bottom: 0.4rem; }

.pipeline-node p{
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- skills ---------- */

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

.skills-grid h3{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 0.6rem;
}

.skills-grid p{
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ---------- certifications ---------- */

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

.cert-card{
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.cert-card h3{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin: 0 0 0.5rem;
}

.cert-card p{
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- projects ---------- */

.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.project-card{
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
}

.project-card:hover{
  border-color: var(--panel-border-strong);
  transform: translateY(-3px);
}

.project-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.project-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.project-lang{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-amber);
  white-space: nowrap;
}

.project-desc{
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- footer ---------- */

.footer{
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  border-top: 1px solid var(--panel-border);
}

.back-top{ text-decoration: none; color: var(--text-muted); }
.back-top:hover{ color: var(--accent-cyan); }

/* ---------- responsive ---------- */

@media (max-width: 640px){
  .stat-rail{ gap: 1rem 1.2rem; padding: 1.1rem 1.2rem; }
  .stat-sep{ display: none; }
  .pipeline{ padding-left: 1.5rem; }
  .pipeline-node::before{ left: -1.5rem; }
}

@media (prefers-reduced-motion: reduce){
  .dot{ animation: none; }
  html{ scroll-behavior: auto; }
}
