:root {
  --bg: #0a0f1c;
  --bg-soft: #121a2b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --accent: #ef4444;
  --accent-dark: #dc2626;
  --accent-soft: rgba(239, 68, 68, 0.12);
  --max-width: 1160px;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.12), transparent 22%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.08), transparent 24%),
    linear-gradient(145deg, #09101d 0%, #0d1424 50%, #10192b 100%);
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.site {
  overflow: hidden;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fecaca;
}

.section-heading__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(254, 202, 202, 0.6);
}

.section-heading__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-heading__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 88px 0 68px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent 85%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 900;
  max-width: 760px;
}

.hero__lead {
  margin: 28px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.17rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button--primary {
  background: linear-gradient(180deg, #f15858 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.22);
}

.button--primary:hover {
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.28);
}

.button--secondary,
.button--ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.button--secondary:hover,
.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero__side {
  display: grid;
  gap: 18px;
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), transparent 80%);
}

.hero-card__label {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card__value {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.7;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.about__content {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-md);
}

.about__content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__skills {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow-md);
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.skill-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
}

/* TIMELINE */

.timeline {
  position: relative;
  padding-left: 28px;
  max-width: 920px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background:
    linear-gradient(
      to bottom,
      rgba(239, 68, 68, 0.95) 0%,
      rgba(239, 68, 68, 0.55) 35%,
      rgba(255, 255, 255, 0.08) 100%
    );
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}

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

.timeline-item__line {
  display: none;
}

.timeline-item__dot {
  position: absolute;
  left: -1px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--accent);
  box-shadow:
    0 0 0 7px rgba(239, 68, 68, 0.08),
    0 8px 18px rgba(239, 68, 68, 0.15);
  z-index: 2;
}

.timeline-item__content {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow-md);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.timeline-item__content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 24px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.timeline-item__content:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.timeline-item__period {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-item__title {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 750;
  color: var(--text);
}

.timeline-item__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 100%;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent 65%);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-lg);
}

.project-card__meta {
  margin-bottom: 12px;
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__title {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.project-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

/* DOWNLOADS */

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

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-md);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.download-item:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028));
}

.download-item__title {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 700;
}

.download-item__subtitle {
  color: var(--soft);
  font-size: 0.94rem;
  margin-top: 4px;
}

.download-item__action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  font-weight: 700;
  white-space: nowrap;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-md);
}

.contact-card__label {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card__value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

/* FOOTER */

.footer {
  padding: 34px 0 52px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
}

.footer__name {
  color: var(--text);
  font-weight: 700;
}

.footer__text {
  text-align: right;
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  .hero__grid,
  .about,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    padding: 68px 0 56px;
  }

  .hero__title {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .hero__side {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 22px;
  }

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

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-item__dot {
    left: -3px;
  }

  .timeline-item__content::before {
    display: none;
  }

  .download-item,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__text {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 64px 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .about__content,
  .about__skills,
  .project-card,
  .contact-card,
  .hero-card,
  .timeline-item__content,
  .download-item {
    padding-left: 18px;
    padding-right: 18px;
  }

  .timeline-item__content {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .download-item__action {
    width: 100%;
    justify-content: center;
  }
}