@font-face {
  font-display: swap;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/mulish-v18-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/mulish-v18-latin-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/mulish-v18-latin-800.woff2') format('woff2');
}

:root {
  --clr-bg: #fff;
  --clr-text: #000;
  --clr-title-end: #0087ff;
  --ff-base: 'Mulish', system-ui, -apple-system, sans-serif;
  --fw-regular: 400;
  --fw-bold: 800;
  --container-width: 1000px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

html {
  min-height: 100dvh;
}

body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  font-family: var(--ff-base);
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
  color: var(--clr-text);
  background: linear-gradient(to right, #000 50.3%, var(--clr-bg) 50.3%);
}

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

.header,
.main,
.footer {
  width: 100%;
  max-width: var(--container-width);
}

.header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 45px;
  font-size: 7em;
}

.title-start {
  position: relative;
  justify-self: end;
  letter-spacing: -5px;
  font-weight: var(--fw-bold);
  color: #fff;

  &::after {
    content: 'DGTR';
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--clr-title-end);
    z-index: -1;
    opacity: 0.7;
  }
}

.title-end {
  position: relative;
  left: -7px;
  justify-self: start;
  text-shadow: 0 0 10px rgba(0, 135, 255, 0.4);
  color: var(--clr-title-end);
}

.h1 {
  margin: 0;
  text-align: right;
  font-size: 1em;
  font-weight: var(--fw-regular);
}

.main {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 45px;
}

.row__title {
  justify-self: end;
  line-height: 1.5;
  color: #94a3b8;
}

.row__text {
  justify-self: start;
  line-height: 1.5;
}

.contact-icons {
  display: flex;
  padding-top: 2px;
  column-gap: 10px;
}

.icon-link {
  height: 24px;
  color: var(--clr-text);
  transition: color 0.3s ease;

  &.github:hover {
    color: #000;
  }

  &.tg:hover {
    color: #26a5e4;
  }

  &.gmail:hover {
    color: #ea4335;
  }
}

.row_info,
.row_backend,
.row_contacts {
  margin-top: var(--spacing-md);
}

.footer {
  margin-top: var(--spacing-lg);
}

@media (max-width: 1023px) {
  html {
    font-size: 14px;
  }

  .contact-icons {
    padding-top: 0;
  }

  .icon-link,
  .icon {
    max-width: 22px;
    max-height: 22px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 12px;
  }

  body {
    background: linear-gradient(to right, #000 50.5%, var(--clr-bg) 50.5%);
  }

  .header {
    column-gap: 35px;
    font-size: 5em;
  }

  .title-end {
    left: -5px;
  }

  .row {
    column-gap: 35px;
  }

  .icon-link,
  .icon {
    max-width: 20px;
    max-height: 20px;
  }
}

@media (max-width: 359px) {
  .header {
    font-size: 4em;
  }
}
