@font-face {
  font-family: 'Centurygothic';
  src: url('./centurygothic.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
  --accent-color: #00eaff;
  --bg-color: #101118;
}

/* Для Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px; /* толщина полосы */
}
::-webkit-scrollbar-track {
  background: transparent; /* фон под скроллом */
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3); /* полупрозрачный "ползунок" */
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5); /* ярче при наведении */
}
/* Для Firefox */
* {
  scrollbar-width: thin; /* "auto" или "thin" */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

html {
  font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif;
  font-size: 17px;
  color: #999;
  background-color: var(--bg-color);
  overflow-y: scroll;
}

body {
  margin: 0 auto;
  padding: 0;
}

nav {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 50px;
  background-color: rgba(24, 28, 36, 1);
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1000px;
}

.hero-photo {
  padding: 4px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);

  img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
    object-position: 73%;
    filter: brightness(70%) contrast(1.1);
  }

  &:hover {
    position: relative;

    &::before {
      content: '<img>';
      color: var(--accent-color);
      position: absolute;
      top: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

.hero-info h1 {
  font-size: 2.5rem;
  margin: 0;
}

.hero-info h2 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0.5rem 0;
}

.hero-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 16px;
  color: #000;
  background-color: #00b8cc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;

  &:hover {
    background-color: var(--accent-color);
  }
}

.icon-btn {
  font-size: 2rem;
  color: #666;
}

.nav-btn {
  background: transparent;
  position: relative;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 12px;
}

i {
  transition: transform 0.3s;
}

.nav-btn.active > i {
  transform: translateY(10px);
}

.nav-btn:hover {
  color: var(--accent-color);
}

.letter-container {
  font-family: 'Centurygothic';
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  position: relative;
  height: 22px;
  flex-wrap: wrap;
  font-size: 12px;
}

.letter {
  font-weight: 600;
  color: #666;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(var(--x, 0)) translateY(0);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), color 0.4s, text-shadow 0.4s;
}

.letter-active {
  color: var(--accent-color);
  text-shadow: 0 0 6px var(--accent-color), 0 0 15px rgba(0, 234, 255, 0.6);
  transform: translateX(var(--x, 0)) translateY(-40px);
}

.indicator {
  position: absolute;
  bottom: -30%;
  width: 40px;
  height: 40px;
  background-color: rgba(16, 17, 24, 1);
  border-radius: 50%;
  border: 6px solid rgba(16, 17, 24, 1);
  transition: 0.5s;
  transform: translateX(var(--x, 0)) translateY(0);

  /* &::before {
  content: '';
  position: absolute;
  bottom: 50%;
  left: -25px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-right-radius: 50%;
  box-shadow: 0px 10px 0 0 rgba(16, 17, 24, 1);
}

&::after {
  content: '';
  position: absolute;
  bottom: 50%;
  right: -25px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-left-radius: 50%;
  box-shadow: 0px 10px 0 0 rgba(16, 17, 24, 1);
} */
}

.section {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  max-width: 800px;
}

h1 {
  font-family: 'Centurygothic';
  color: var(--accent-color);
  margin: 0;
  padding: 0;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 4px;

  &:hover {
    position: relative;

    &::before {
      content: '<h1>';
      color: var(--accent-color);
      position: absolute;
      top: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</h1>';
      color: var(--accent-color);
      position: absolute;
      bottom: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

h2 {
  font-family: 'Centurygothic';
  color: var(--accent-color);
  margin: 20px 0 20px 20px;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 4px;

  &:hover {
    position: relative;

    &::before {
      content: '<h2>';
      color: var(--accent-color);
      position: absolute;
      top: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</h2>';
      color: var(--accent-color);
      position: absolute;
      bottom: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

h3 {
  font-family: 'Centurygothic';
  color: var(--accent-color);
  margin: 20px 0 20px 20px;
  padding: 0;
  font-size: 16px;
  letter-spacing: 2px;

  &:hover {
    position: relative;

    &::before {
      content: '<h3>';
      color: var(--accent-color);
      position: absolute;
      top: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</h3>';
      color: var(--accent-color);
      position: absolute;
      bottom: -15px;
      left: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

p {
  margin: 0;
  padding: 0;
}

.left {
  position: relative;
  text-transform: uppercase;
  border-right: 1px solid #aaa;
  text-align: right;
  padding: 0 13px;
  font-weight: 600;

  &::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    transform: translate(53%, 50%);
    width: 9px;
    height: 9px;
    background-color: var(--bg-color);
    border: 1px solid #aaa;
    border-radius: 50%;
  }

  &:first-child::before {
    content: '';
    position: absolute;
    top: 0px;
    right: 0;
    transform: translate(50%, 0);
    width: 5px;
    height: 30px;
    background-color: var(--bg-color);
  }

  /* &:nth-last-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(50%, 0);
    width: 10px;
    height: 30px;
    background-color: var(--bg-color);
  } */
}

.right {
  padding: 0 13px;
}

.contacts {
  width: 100%;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  margin: 20px 0 30px;

  & li {
    width: 50%;
    margin: 2px 0;
    padding: 0;
    display: flex;
    align-items: center;
  }

  & li a {
    text-decoration: none;
    color: #000;
  }

  & li::before {
    content: '';
    display: inline-block;
    line-height: normal;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-size: contain;
  }
}

.phone::before {
  background: url('./icons/phone.png') no-repeat;
}
.email::before {
  background: url('./icons/email.png') no-repeat;
}
.linkedin::before {
  background: url('./icons/linkedin.png') no-repeat;
}
.github::before {
  background: url('./icons/github.png') no-repeat;
}
.address::before {
  background: url('./icons/address.png') no-repeat;
}

.list {
  padding-left: 40px;
  margin: 20px 0 0;
  list-style-type: circle;

  &:hover {
    position: relative;

    &::before {
      content: '<ul>';
      color: var(--accent-color);
      position: absolute;
      top: -15px;
      left: -5px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</ul>';
      color: var(--accent-color);
      position: absolute;
      bottom: -15px;
      left: -5px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }

  & > li:hover {
    list-style-type: none;
    position: relative;

    &::before {
      content: '<li>';
      color: var(--accent-color);
      position: absolute;
      top: 4px;
      left: -30px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</li>';
      color: var(--accent-color);
      position: absolute;
      bottom: 2px;
      right: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

.skills-list > li {
  margin-bottom: 10px;
}

.skills {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 4px;

  & li {
    border: 1px solid #666;
    border-radius: 4px;
    padding: 1px 10px;
  }

  & li:hover {
    /* color: var(--accent-color); */
    border: 1px solid var(--accent-color);
  }
}

.paragraph {
  margin: 0 0 0 20px;

  &:hover {
    position: relative;

    &::before {
      content: '<p>';
      color: var(--accent-color);
      position: absolute;
      top: 4px;
      left: -25px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</p>';
      color: var(--accent-color);
      position: absolute;
      bottom: 1px;
      right: -20px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

.input-field {
  display: block;
  margin: 10px 20px;

  & > input {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #ccc;
    background-color: transparent;
  }

  & > textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    color: #ccc;
    background-color: transparent;
  }
}

.button-submit {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #000;
  background-color: #00b8cc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;
  margin-top: 10px;
  margin-left: 20px;

  &:hover {
    background-color: var(--accent-color);
  }
}
.work:not(:last-child) {
  margin-bottom: 20px;
}

.contact-name {
  display: inline-block;
  width: 75px;
}

.link {
  font-family: 'Centurygothic';
  letter-spacing: 1px;
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 30px;

  &:hover {
    position: relative;
    text-decoration: underline;

    &::before {
      content: '<a>';
      color: var(--accent-color);
      position: absolute;
      top: 5px;
      left: -30px;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</a>';
      color: var(--accent-color);
      position: absolute;
      bottom: 1px;
      right: -40px;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}

footer {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 14px;
  color: #666;
}

.hidden {
  display: none;
}

.margin-top {
  height: 20px;
}

#map {
  height: 250px;
  width: 100%;
}

.leaflet-control-zoom,
.leaflet-left,
.leaflet-right {
  display: none;
}

.contact-form {
  margin-top: 20px;

  &:hover {
    position: relative;

    &::before {
      content: '<form>';
      color: var(--accent-color);
      position: absolute;
      top: -15px;
      left: 0;
      font-size: 12px;
      letter-spacing: 2px;
    }

    &::after {
      content: '</form>';
      color: var(--accent-color);
      position: absolute;
      bottom: -15px;
      left: 0;
      font-size: 12px;
      letter-spacing: 2px;
    }
  }
}
