﻿:root {
  --bg: #050812;
  --accent: #8fb9d9;
  --accent-soft: rgba(143, 185, 217, 0.16);
  --text: #eef6fb;
  --muted: #9aa8b6;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93, 145, 190, 0.2), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(120, 133, 150, 0.12), transparent 30rem),
    linear-gradient(135deg, #050812 0%, #0b1421 48%, #02040a 100%);
}

body:not(.is-loaded) .page-shell {
  opacity: 0;
  transform: translateY(18px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.14) 50%);
  background-size: 100% 4px;
  mix-blend-mode: multiply;
  opacity: 0.42;
}

#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.linkedin-button {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  font: 400 0.76rem/1 "Share Tech Mono", monospace;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(143, 185, 217, 0.26);
  background: rgba(9, 18, 31, 0.56);
  backdrop-filter: blur(4px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.linkedin-button:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 238, 247, 0.56);
  background: rgba(143, 185, 217, 0.1);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(143, 185, 217, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(143, 185, 217, 0.03) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(78, 118, 154, 0.13), transparent 26rem),
    rgba(3, 6, 13, 0.95);
  background-size: 64px 64px, 64px 64px, auto, auto;
  backdrop-filter: blur(5px);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 48%, rgba(143, 185, 217, 0.055) 50%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(143, 185, 217, 0.04) 50%, transparent 52%);
  pointer-events: none;
}

.loader::after {
  content: "01001000 00110001 01010010 01000101";
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(154, 168, 182, 0.34);
  font: 400 0.68rem/1 "Share Tech Mono", monospace;
  letter-spacing: 0.18em;
}

.loader__terminal {
  position: relative;
  display: grid;
  justify-items: start;
  width: min(560px, calc(100vw - 44px));
}

.loader__terminal::before {
  content: "";
  position: absolute;
  left: 0;
  top: -22px;
  width: 72px;
  height: 1px;
  background: rgba(226, 238, 247, 0.65);
  box-shadow: 96px 0 0 rgba(143, 185, 217, 0.24), 220px 0 0 rgba(143, 185, 217, 0.14);
}

.loader__status,
.loader__hint {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font: 400 0.74rem/1 "Share Tech Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.loader__status {
  color: rgba(154, 168, 182, 0.76);
}

.loader__hint {
  color: rgba(154, 168, 182, 0.62);
}

.loader__command {
  position: relative;
  z-index: 1;
  margin: 18px 0 22px;
  color: var(--text);
  font: 400 clamp(2.25rem, 7vw, 5.4rem)/0.9 "Share Tech Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(143, 185, 217, 0.22);
  animation: loader-flicker 1800ms steps(2, end) infinite;
}

.loader__bar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 2px;
  margin-bottom: 16px;
  overflow: hidden;
  background: rgba(143, 185, 217, 0.16);
}

.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(105, 123, 142, 0.25), rgba(226, 238, 247, 0.92), rgba(143, 185, 217, 0.42));
  box-shadow: 0 0 18px rgba(143, 185, 217, 0.36);
  transform-origin: left;
  animation: loader-progress 3000ms cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

body.is-loaded .loader {
  visibility: hidden;
  opacity: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 92px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms ease 180ms, transform 800ms ease 180ms;
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 64px 0;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
  left: -12vw;
  top: 50%;
  z-index: -1;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  transform: translateY(-50%);
  box-shadow: 0 0 90px rgba(113, 165, 207, 0.12);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: var(--accent);
  font: 400 0.78rem/1 "Share Tech Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(143, 185, 217, 0.28);
  background: rgba(9, 18, 31, 0.7);
  box-shadow: 0 0 30px rgba(143, 185, 217, 0.1);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(143, 185, 217, 0.18);
}

.role {
  width: fit-content;
  margin: 18px 0 0;
  color: var(--accent);
  font: 400 clamp(1rem, 2vw, 1.24rem)/1.2 "Share Tech Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  font: 400 0.78rem/1 "Share Tech Mono", monospace;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(143, 185, 217, 0.26);
  background: rgba(9, 18, 31, 0.56);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 238, 247, 0.56);
  background: rgba(143, 185, 217, 0.1);
}

.button--primary {
  color: #06101b;
  border-color: rgba(226, 238, 247, 0.8);
  background: linear-gradient(90deg, rgba(226, 238, 247, 0.92), rgba(143, 185, 217, 0.88));
}

.profile-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-grid {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
}

.content-section {
  margin-top: 56px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.info-card h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.info-card h3,
.timeline-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.3;
}

.info-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(143, 185, 217, 0.16);
  background:
    linear-gradient(135deg, rgba(9, 18, 31, 0.72), rgba(5, 8, 18, 0.36)),
    rgba(5, 8, 18, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(3px);
}

.info-card--wide {
  grid-row: span 2;
}

.info-card p,
.timeline-item p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.card-kicker,
.timeline-date,
.meta {
  color: var(--accent);
  font: 400 0.72rem/1.2 "Share Tech Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-list,
.contact-list,
.qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list li,
.qualities li {
  padding: 8px 10px;
  color: var(--text);
  font: 400 0.78rem/1 "Share Tech Mono", monospace;
  border: 1px solid rgba(143, 185, 217, 0.18);
  background: rgba(143, 185, 217, 0.07);
}

.contact-list {
  display: grid;
}

.contact-list li {
  color: var(--muted);
  line-height: 1.5;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding: 22px 24px 22px 32px;
  border-left: 1px solid rgba(143, 185, 217, 0.28);
  background: linear-gradient(90deg, rgba(9, 18, 31, 0.64), rgba(9, 18, 31, 0.2));
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 28px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(143, 185, 217, 0.7);
}

.timeline-item h3 {
  margin-top: 10px;
}

.qualities {
  margin-top: 18px;
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  body::before {
    background-size: 34px 34px;
  }

  .page-shell {
    width: min(100% - 24px, 920px);
    padding: 32px 0 56px;
  }

  .hero {
    min-height: 100svh;
    padding: 86px 0 52px;
  }

  .hero::before {
    left: 50%;
    width: 92vw;
    height: 92vw;
    opacity: 0.72;
    transform: translate(-50%, -50%);
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 18vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
  }

  .role {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  .intro {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .linkedin-button {
    top: 14px;
    right: 14px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.66rem;
  }

  .hero__actions,
  .profile-grid,
  .split-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
  }

  .content-section {
    margin-top: 42px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2,
  .info-card h2 {
    font-size: clamp(1.55rem, 10vw, 2.35rem);
    line-height: 1.04;
  }

  .info-card {
    padding: 20px;
  }

  .info-card p,
  .timeline-item p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .timeline-item {
    padding: 20px 18px 20px 24px;
  }

  .tag-list,
  .qualities {
    gap: 8px;
  }

  .tag-list li,
  .qualities li {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .loader {
    padding: 18px;
    background-size: 42px 42px, 42px 42px, auto, auto;
  }

  .loader::after {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .loader__terminal {
    width: min(100%, calc(100vw - 32px));
  }

  .loader__command {
    font-size: clamp(2rem, 12vw, 3.4rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .loader__status,
  .loader__hint {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .info-card--wide {
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 18px, 920px);
  }

  .hero {
    padding-top: 82px;
  }

  h1 {
    font-size: clamp(2.75rem, 17vw, 4.2rem);
  }

  .eyebrow {
    padding: 7px 9px;
    font-size: 0.6rem;
  }

  .role,
  .card-kicker,
  .timeline-date,
  .meta {
    letter-spacing: 0.08em;
  }

  .linkedin-button {
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 0 10px;
  }

  .info-card {
    padding: 18px;
  }

  .timeline-item {
    padding-right: 14px;
  }
}

@keyframes loader-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes loader-flicker {
  0%,
  100% {
    opacity: 1;
  }

  48% {
    opacity: 0.92;
  }

  52% {
    opacity: 0.78;
  }

  56% {
    opacity: 1;
  }
}

