* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body {
  background: #111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scroller {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.snap-section {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bookmarks {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.bookmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #555;
  text-decoration: none;
  font-size: 16px;
  border-left: 2px solid #222;
  border-bottom: 1px solid #1a1a1a;
  background: #111111;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.bookmark:last-child {
  border-bottom: none;
}

.bookmark:hover {
  color: #e22000;
  background: #1a1a1a;
}

.bookmark.active {
  color: #e22000;
  border-left-color: #e22000;
  background: #1a1a1a;
}

.scroll-toast {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #555;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation:
    toastBob 2s ease-in-out infinite,
    toastFade 0.4s ease 4s forwards;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes toastBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@keyframes toastFade {
  to {
    opacity: 0;
  }
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.profile {
  border-radius: 200px;
  width: 150px;
  height: 150px;
  border: 2px solid #000;
  object-fit: cover;
  user-select: none;
}

.profile-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  user-select: none;
}

.side-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.side-icon.left {
  left: -60px;
}
.side-icon.right {
  right: -60px;
}

.side-icon:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(7462%)
    hue-rotate(358deg) brightness(93%) contrast(119%);
  transform: scale(1.1);
}

.main-container .title {
  color: white;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
}

.developer {
  color: #e22000;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.contacts-container {
  max-width: 600px;
  width: 100%;
  padding: 15px;
}

.contacts-container .title {
  color: white;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 24px;
  text-align: center;
}

.line {
  width: 200px;
  height: 1px;
  background: white;
  margin: 8px auto;
}

.contacts {
  color: white;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.contact {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.contacts a:hover {
  color: #e22000;
}
.contacts a i {
  margin-right: 8px;
}

.section-content {
  max-width: 680px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: white;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  padding: 40px 0;
}

.section-content::-webkit-scrollbar {
  display: none;
}

.section-content h3 {
  font-size: 24px;
  color: #e22000;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  background: #111111;
  padding: 12px 0;
  z-index: 1;
}

.section-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 40px;
  background: #111111;
}

.item {
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 3px solid #e22000;
}

.item-title {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}

.item-subtitle {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 3px;
}

.item-date {
  font-size: 16px;
  color: #e22000;
  margin-bottom: 10px;
  font-style: italic;
}

.item-description {
  font-size: 16px;
  color: #aaaaaa;
  line-height: 1.5;
}

.item-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  user-select: none;
  margin-top: 10px;
}

.item-links .item-logo {
  margin-top: 0;
}

.item-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.item-github {
  color: #555;
  text-decoration: none;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.item-github i {
  font-size: 50px;
  line-height: 1;
}

.item-github:hover {
  color: #e22000;
}

.demo {
  display: inline-flex;
}

.demo img {
  transition: transform 0.2s ease;
}

.demo:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(7462%)
    hue-rotate(358deg) brightness(93%) contrast(119%);
  transform: scale(1.1);
}

.item a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  transition: color 0.3s ease;
  word-break: break-all;
}

.item a:hover {
  color: #e22000;
}

.skill-group {
  margin-bottom: 18px;
}

.skill-group-label {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 8px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: #2a2a2a;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  border: 1px solid #e22000;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: #e22000;
  transform: translateY(-2px);
}

.source {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  word-break: break-all;
}

.source:hover {
  color: #e22000;
}

@media (min-width: 768px) {
  .profile {
    width: 320px;
    height: 320px;
  }
  .main-container .title {
    font-size: 48px;
  }
  .developer {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .snap-section {
    justify-content: center;
  }

  .profile {
    width: 170px;
    height: 170px;
  }

  .side-icon {
    display: none;
  }

  .main-container .title {
    font-size: 28px;
  }
  .developer {
    font-size: 18px;
  }

  .contacts-container .title {
    font-size: 18px;
  }
  .contacts {
    font-size: 14px;
  }
  .contacts a {
    font-size: 13px;
  }
  .line {
    width: 120px;
  }

  .section-content {
    width: 88%;
    padding: 32px 0 32px 12%;
  }
  .section-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .item {
    margin-bottom: 18px;
  }
  .item-title {
    font-size: 16px;
  }
  .item-subtitle {
    font-size: 14px;
  }
  .item-date {
    font-size: 13px;
  }
  .item-description {
    font-size: 13px;
  }
  .item-logo {
    width: 36px;
    height: 36px;
  }
  .item-links .item-logo {
    width: 36px;
    height: 36px;
  }
  .item-github {
    width: 36px;
    height: 36px;
  }
  .item-github i {
    font-size: 36px;
  }

  .skill-tag {
    font-size: 13px;
    padding: 6px 12px;
  }
  .skill-group-label {
    font-size: 10px;
  }

  .bookmarks {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    border-top: 1px solid #1a1a1a;
  }

  .bookmark {
    flex: 1;
    height: 48px;
    border-left: none;
    border-bottom: none;
    border-top: 2px solid transparent;
  }

  .bookmark.active {
    border-top-color: #e22000;
    border-left-color: transparent;
  }

  .scroll-toast {
    font-size: 11px;
    bottom: 20px;
  }
}
