:root {
  --bg: #050a14;
  --card: rgba(10, 22, 40, 0.82);
  --cyan: #00c2ff;
  --muted: #a9b7cc;
  --line: rgba(56, 140, 200, 0.28);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: #f8fafc;
  font:
    400 16px/1.6 Inter,
    system-ui,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.wrap {
  width: min(1600px, 94%);
  margin: 0 auto;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 10, 20, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  position: relative;
}
.logo img {
  height: 56px;
  width: auto;
}
.links {
  display: flex;
  gap: 44px;
  list-style: none;
  font-weight: 500;
}
.links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s;
}
.links a:hover,
.links a.on {
  color: var(--cyan);
}
.links a.on {
  border-color: var(--cyan);
}
.links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}
@media (min-width: 1101px) {
  .links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 31.3vw, 640px);
  display: flex;
  align-items: center;
  padding: 36px 0 44px;
}
.plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding: 0 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 30, 40, 0.8);
  border: 1px solid rgba(40, 200, 120, 0.3);
  border-radius: 30px;
  padding: 7px 18px 7px 12px;
  font-size: 15px;
  margin-bottom: 18px;
}
.pill i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22e05a;
  box-shadow: 0 0 12px #22e05a;
}
h1 {
  font:
    800 clamp(44px, 5.9vw, 98px)/0.95 Montserrat,
    Inter,
    sans-serif;
  letter-spacing: 1px;
}
h1 span {
  display: block;
  background: linear-gradient(180deg, #fff, #9aa6b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 span + span {
  background: linear-gradient(180deg, #00d4ff, #0a84ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.role {
  font-size: clamp(19px, 1.75vw, 30px);
  font-weight: 500;
  margin: 14px 0 12px;
}
.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.5;
  margin-bottom: 26px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.2s;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn.p {
  background: var(--cyan);
  color: #021019;
  box-shadow: 0 0 26px rgba(0, 194, 255, 0.35);
}
.btn.p:hover {
  background: #35d2ff;
}
.btn.o {
  border: 1.5px solid var(--cyan);
}
.btn.o:hover {
  background: rgba(0, 194, 255, 0.12);
}

/* cards */
.home-cards {
  padding: 20px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 26px;
  transition: 0.2s;
}
a.card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.card > svg {
  width: 38px;
  height: 38px;
  color: var(--cyan);
}
.card h2,
.card h3 {
  font-size: 21px;
  font-weight: 600;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}
.more {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 6px;
}
.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips {
  flex: 1;
  align-content: flex-start;
}
.chips span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1px 12px;
  font-size: 13px;
}

/* inner pages */
main {
  flex: 1;
}
.page {
  padding: 72px 0 8px;
  scroll-margin-top: 80px;
}
#contact {
  display: none;
  padding-bottom: 72px;
}
.page h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 30px;
}
.page h2 b {
  color: var(--cyan);
  font-weight: 700;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.page .card {
  padding: 24px;
  gap: 8px;
}
.page .card p {
  flex: none;
}
.kind {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
}
.tags {
  margin-top: 6px;
}
.tags span {
  background: rgba(0, 194, 255, 0.09);
  border: 1px solid rgba(0, 194, 255, 0.25);
  color: #38bdf8;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
}
.about {
  max-width: 760px;
  display: grid;
  gap: 16px;
  color: var(--muted);
}
.timeline {
  position: relative;
  max-width: 760px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--cyan),
    rgba(0, 194, 255, 0.15)
  );
}
.timeline-item {
  position: relative;
}
.timeline-item + .timeline-item {
  margin-top: 34px;
}
.timeline-marker {
  position: absolute;
  left: -34px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow:
    0 0 0 4px rgba(0, 194, 255, 0.12),
    0 0 12px rgba(0, 194, 255, 0.5);
}
.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.timeline-date .sep {
  color: var(--muted);
  font-weight: 400;
}
.timeline-location {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.timeline-item h3 {
  font-size: 20px;
  font-weight: 600;
}
.timeline-item p {
  color: var(--muted);
  margin-top: 6px;
}
.contact {
  text-align: center;
  background: linear-gradient(135deg, #0a1a30, #0a2a4a);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 24px;
}
.contact p {
  color: var(--muted);
  margin-bottom: 24px;
}
.contact h2 {
  margin-bottom: 12px;
}
[data-v="contact"] #contact {
  display: block;
}
[data-v="contact"] .hero,
[data-v="contact"] .home-cards,
[data-v="contact"] .page:not(#contact) {
  display: none;
}
#skills {
  padding-bottom: 72px;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  background: #040812;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 68px;
  padding: 10px 0;
  font-size: 15px;
}
.foot div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.foot img {
  height: 40px;
  width: auto;
}
.foot p {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.social a:hover {
  background: var(--cyan);
  color: #021019;
}
.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .links {
    gap: 26px;
  }
}
@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
    padding-top: 8px;
  }
  .links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 24px;
    scrollbar-width: none;
  }
  .links a {
    padding: 12px 0;
  }
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 32px;
  }
  .plate {
    position: static;
    height: 60vw;
    min-height: 220px;
    object-position: 78% top;
  }
  .hero .wrap {
    padding: 22px 4px 0;
  }
  .foot p {
    border: 0;
    padding: 0;
  }
}
@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .foot,
  .foot div {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.tags.ext {
  margin-top: 10px;
}
.lk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  transition: 0.2s;
}
.lk:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.lk i {
  font-style: normal;
  font-weight: 700;
  font-size: 9px;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  border-radius: 11px;
  background: var(--cyan);
  color: #021019;
  display: grid;
  place-items: center;
}
