:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --bg-soft-2: #161f39;
  --card: #ffffff;
  --card-soft: #f7f9fc;
  --text: #152033;
  --text-soft: #596885;
  --text-light: #d9e1f5;
  --border: #dde5f3;
  --border-dark: rgba(255, 255, 255, 0.12);
  --accent: #7c9cff;
  --accent-strong: #5b7cff;
  --accent-soft: rgba(124, 156, 255, 0.14);
  --shadow: 0 20px 50px rgba(13, 23, 46, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(91, 124, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #0a1020 0%, #101936 40%, #0b1020 100%);
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 24, 0.72);
  border-bottom: 1px solid var(--border-dark);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(91, 124, 255, 0.35);
}

.brand-text {
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 999px;
}

.hero {
  padding: 78px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 26px;
  align-items: start;
}

.hero-card,
.content-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.hero-main-top {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 138px;
  height: 138px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid #edf2ff;
  box-shadow: 0 16px 35px rgba(20, 40, 90, 0.14);
}

.eyebrow,
.section-tag {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  color: var(--text-soft);
}

.hero-role {
  font-size: 1.05rem;
  color: #334564;
  margin-bottom: 18px;
}

.hero-summary {
  font-size: 1.04rem;
  color: #44526d;
  max-width: 900px;
}

.hero-tags,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.pill-list span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #eef3ff;
  color: #3352b6;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 14px 28px rgba(91, 124, 255, 0.28);
}

.btn-secondary {
  background: #eef3ff;
  color: #314db0;
}

.hero-side h2 {
  font-size: 1.4rem;
}

.key-data {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.key-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.key-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.key-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.key-value {
  color: #334564;
  font-weight: 600;
}

.links-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-box a {
  color: #3552b8;
  font-weight: 600;
}

.section {
  padding: 26px 0;
}

.content-card {
  padding: 34px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.timeline {
  position: relative;
  margin-top: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e3eaf6;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 109px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(91, 124, 255, 0.25);
}

.timeline-date {
  font-weight: 800;
  color: #314db0;
  font-size: 0.95rem;
  padding-top: 5px;
}

.timeline-role,
.project-subtitle {
  color: #4f5f7d;
  font-weight: 700;
}

.timeline-tech {
  color: #667892;
  font-size: 0.96rem;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.clean-list li + li {
  margin-top: 12px;
}

.subsection-block {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--card-soft);
  border: 1px solid #e8eef9;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.project-box {
  background: var(--card-soft);
  border: 1px solid #e8eef9;
  border-radius: 18px;
  padding: 24px;
}

.stack-list {
  display: grid;
  gap: 18px;
}

.stack-item {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid #e8eef9;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--accent-strong);
}

.contact-item a {
  color: #3552b8;
  font-weight: 600;
}

.site-footer {
  padding: 24px 0 38px;
}

.footer-inner {
  color: #dbe4f8;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-columns,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(8, 12, 24, 0.98);
    border-bottom: 1px solid var(--border-dark);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 1rem 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
  }

  .hero-main-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 38px;
  }

  .timeline-item::before {
    left: 7px;
  }

  .timeline-date {
    padding-top: 0;
  }

  .content-card,
  .hero-card {
    padding: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .menu-toggle,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  .section {
    padding: 10px 0;
  }

  .hero,
  .content-card,
  .hero-card {
    box-shadow: none;
  }

  .hero-card,
  .content-card {
    border: 1px solid #ddd;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }
}