*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
}

*::selection {
  background-color: #8ba8d3;
}

:root {
  --gradient: linear-gradient(90deg,#ff8a00,#e52e71);
  --background: #101010;
  --background-secondary: #181818;

  /* --list-item: #191e2e; */
  --list-item: #191919;
  --list-item-title: #e7e7eb;
  --list-item-btn: #272625;
  --list-item-btn-hover: #101010;
  --list-item-description: #e29f53;

  --title: rgb(243, 216, 181);
  --sub-title: rgb(245, 237, 226);
  --text: #f2f2f2;
  --primary: #217ad8;
  --border: #3071d1;
}

::-webkit-scrollbar {
  width: 4px;
  background-color: #242425;
}

::-webkit-scrollbar-thumb {
  background-color: #5c6072;
  border-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
}

button {
  cursor: pointer;
  border: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.header {
  width: 100%;
  z-index: 99;
  display: none;
}

.header-name {
  color: var(--text);
}

.header-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.background {
  opacity: 0.4;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 0;
}

.banner__title {
  z-index: 4;
  font-weight: bold;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3em;
  line-height: 0.9em;
  margin-bottom: 1rem;
}

.banner__sub-title {
  z-index: 4;
  color: var(--sub-title);
}

.banner__arrow {
  position: absolute;
  cursor: pointer;
  bottom: 0;
  opacity: 0.6;
  animation: float 2s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.section {
  margin: 32px 0;
}

.section__header {
  padding: 32px 0 16px 0;
}

.section__header-name {
  /* font-weight: normal; */
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--title);
}

.section__header-title {
  font-size: 1.9rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 8px;
}

#about, #portfolio {
  min-height: 96vh;
}

#contact {
  min-height: 60vh;
}

.about {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.about__text {
  max-width: 460px;
  margin: 16px 0 16px 0;
  color: var(--text);
}

.about__photo {
  max-width: 360px;
  max-height: 400px;

  border-bottom: 8px solid;
  border-right: 8px solid;
  border-image-source: var(--gradient);
  border-image-slice: 1;
}

.logo {
  min-width: 130px;
}

/* .list-projects {
  width: 100%;
  margin: 32px 0 16px 0;
  display: flex;
  flex-wrap: wrap;
} */

.list-projects {
  width: 100%;
  margin: 32px 0 16px 0;
}

.list-projects__item {
  padding: 32px 24px 0 24px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 1px 8px 10px #101010;
  background: var(--list-item);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 4px solid;
  border-image-source: var(--gradient);
  border-image-slice: 1;
  border-style: outset;
  /* transition: transform 400ms ease-in; */
}

.list-projects__item:hover {

  /* transform: translateY(-4px); */
}

.list-projects__item-title {
  color: var(--list-item-title);
  display: block;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.list-projects__item-description {
  color: var(--list-item-description);
}

.list-projects__item-img {
  width: 100%;
  min-height: 180px;
  max-height: 260px;
  border-radius: 8px 8px 0 0;
}

.list-projects__item .links {
  margin: 16px 0 18px 0;
  display: flex;
  flex-wrap: wrap;
}

.links__item {
  padding: 8px 16px;
  color: var(--text);
  /* background-color: var(--list-item-btn); */
  border: 1px solid var(--list-item-btn);
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.links__item img {
  width: 24px;
}

.links__item:hover {
  background-color: var(--list-item-btn-hover);
}

.links__item + .links__item {
  margin-left: 16px;
}

.contacts {
  margin-top: 32px;
}

.list-contacts__item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.list-contacts__item a {
  margin-left: 16px;
  color: var(--text);
}

.list-contacts__item:hover, a {
}

@media (max-width: 360px) {
  .header-box {
    padding: 16px 16px;
  }

  .container {
    padding: 0 16px;
  }
}

/* @media (min-width: 840px) {
  .about__text {
    margin: 16px 0 16px 24px;
  }
}

@media (min-width: 864px) {
  .about__text {
    margin: 16px 0 16px 24px;
  }

  .list-projects__item {
    margin: 0 8px 16px 8px;
  }
} */

@media (min-width: 747px) {
  .list-projects {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(340px, 500px));
  }

  .list-projects__item {
    max-width: 500px;
    margin: 0;
  }
}
