body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 255, 102, 0.1), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(0, 255, 102, 0.055), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.055), transparent 32%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 88%);
  mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 88%);
}


.about-page {
  min-height: 100vh;
  padding-top: 220px;
  padding-bottom: 90px;
  color: #fff;
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: transparent;
}

.about-page::before {
  content: "";
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 105, 42, 0.18), transparent 28%),
    radial-gradient(circle at 18% 12%, rgba(0, 72, 30, 0.08), transparent 34%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.98), rgba(0, 0, 0, 0.99) 52%, #050505);
}

.about-page section {
  width: min(1050px, calc(100% - 48px));
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 340px);
  align-items: center;
  gap: 56px;
  margin-top: 50px;
  margin-bottom: 120px;
}

.about-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-transform: none;
}

.about-hero h1::before {
  content: "> ";
  color: var(--green);
}

.hero-profile-card {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--green-line);
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 0 55px rgba(0, 255, 102, 0.11),
    0 28px 80px rgba(0, 0, 0, 0.55);
}

.hero-profile-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 65%, rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at top left, rgba(0, 255, 102, 0.12), transparent 42%);
}

.hero-profile-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) saturate(0.96) brightness(0.98);
}

.about-section,
.card-section,
.education-section,
.tech-section {
  margin-bottom: 110px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.about-section h2,
.card-section h2,
.education-section h2,
.tech-section h2 {
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.about-text-block,
.education-panel {
  display: grid;
  gap: 20px;
  color: #b5b5b5;
  font-size: 1rem;
  line-height: 1.75;
}

.about-text-block p,
.education-panel p {
  margin: 0;
}

.about-text-block {
  padding-left: 22px;
  border-left: 1px solid var(--green-line);
}

.education-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(0, 255, 102, 0.11), transparent 36%),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

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

.about-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.022)),
    rgba(8, 10, 12, 0.86);
  cursor: default;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 140px at var(--mouse-x) var(--mouse-y),
    rgba(0, 255, 102, 0.28),
    rgba(0, 255, 102, 0.07) 38%,
    transparent 72%
  );
  transition: opacity 0.25s ease;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  pointer-events: none;
  border: 1px solid transparent;
  background:
    radial-gradient(circle 115px at var(--mouse-x) var(--mouse-y), var(--green), transparent 72%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 102, 0.34);
}

.about-card:hover::before,
.about-card:hover::after {
  opacity: 1;
}

.about-card h3,
.about-card p {
  position: relative;
  z-index: 1;
}

.about-card h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.about-card h3::before {
  content: "# ";
  color: var(--green);
}

.about-card p {
  color: #b5b5b5;
  font-size: 0.96rem;
  line-height: 1.7;
}

.tech-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  animation: moveTech 28s linear infinite;
}

.tech-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

.tech-item {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: #e6e6e6;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: var(--green-line);
}

.tech-item img,
.tech-logo-text {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
}

.tech-logo-text {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--green-line);
  border-radius: 4px;
  background: rgba(0, 255, 102, 0.08);
}

.tech-item span:last-child {
  font-size: 0.92rem;
  font-weight: 700;
}

@keyframes moveTech {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 95px;
  }

  .hero-profile-card {
    width: min(320px, 100%);
    justify-self: start;
  }

  .about-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-page {
    padding: 125px 6% 70px;
  }

  .about-page::before {
    top: 120px;
  }

  .about-page section {
    width: 100%;
  }

  .about-hero h1 {
    font-size: 2.25rem;
  }

  .about-section,
  .card-section,
  .education-section,
  .tech-section {
    margin-bottom: 82px;
  }

  .about-text-block {
    padding-left: 16px;
  }

  .education-panel,
  .about-card {
    padding: 22px 18px;
  }

  .about-card {
    min-height: auto;
  }

  .tech-track {
    animation-duration: 22s;
  }
}

@media (max-width: 900px) {
  .about-page {
    padding-top: 190px;
  }

  .about-hero {
    gap: 34px;
    margin-top: 28px;
    margin-bottom: 92px;
  }

  .about-hero h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-profile-card {
    width: min(360px, 100%);
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .about-page {
    padding: 178px 6% 70px;
  }

  .about-page section {
    width: 100%;
  }

  .about-hero {
    gap: 28px;
    margin-top: 18px;
    margin-bottom: 78px;
  }

  .about-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .hero-profile-card {
    width: min(330px, 100%);
    aspect-ratio: 3 / 4;
  }

  .hero-profile-card::before {
    inset: 10px;
  }

  .about-section,
  .card-section,
  .education-section,
  .tech-section {
    margin-bottom: 70px;
  }

  .about-text-block,
  .education-panel {
    gap: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .about-text-block {
    padding-left: 14px;
  }

  .about-card-grid {
    gap: 14px;
  }

  .education-panel,
  .about-card {
    padding: 21px 16px;
  }

  .about-card p {
    font-size: 0.92rem;
  }

  .tech-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
    mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  }

  .tech-item {
    padding: 10px 13px;
  }
}

@media (max-width: 600px) {
  .about-page {
    padding: 162px 18px 62px;
  }

  .about-page::before {
    top: 140px;
  }

  .about-hero {
    margin-bottom: 66px;
  }

  .about-hero h1 {
    font-size: clamp(1.55rem, 8.2vw, 2rem);
    letter-spacing: -0.035em;
  }

  .hero-profile-card {
    width: min(100%, 315px);
    max-height: 430px;
  }

  .section-kicker {
    font-size: 0.76rem;
  }

  .about-section h2,
  .card-section h2,
  .education-section h2,
  .tech-section h2 {
    margin-bottom: 20px;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .about-text-block,
  .education-panel,
  .about-card p {
    font-size: 0.9rem;
  }

  .tech-track {
    animation-duration: 20s;
  }

  .tech-item img,
  .tech-logo-text {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

@media (max-width: 380px) {
  .about-page {
    padding-left: 15px;
    padding-right: 15px;
  }

  .about-hero h1 {
    font-size: 1.48rem;
  }

  .hero-profile-card {
    width: min(100%, 285px);
  }
}

@media (hover: none) {
  .about-card:hover,
  .tech-item:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .about-hero {
    gap: 30px;
    margin-top: 28px;
    margin-bottom: 82px;
  }

  .about-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.25rem);
    line-height: 1.1;
  }

  .hero-profile-card {
    width: 100%;
    max-width: 330px;
    justify-self: center;
  }

  .about-text-block,
  .education-panel,
  .about-card {
    font-size: 0.95rem;
  }

  .tech-marquee {
    width: calc(100% + 24px);
    margin-left: -12px;
  }
}
