* {
  margin: 0;
  padding: 0;
}

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

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

.menu-icon {
  position: fixed;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1000;
}

.menu-icon:hover {
  color: #e22000;
}

.menu-toast {
  position: fixed;
  top: 22px;
  left: 52px;
  color: white;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: normal;
  pointer-events: none;
  opacity: 1;
  animation: toastFade 0.4s ease 2.5s forwards;
  z-index: 1000;
  white-space: nowrap;
}

@keyframes toastFade {
  0% {
    opacity: 1;
  }
  100% {
    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;
  box-shadow: 0px 0px 57px 45px rgba(0, 0, 0, 0);
  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;
}

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

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

.side-icon img {
  transition: transform 0.2s ease;
}

.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;
}

@media (min-width: 768px) {
  .profile {
    width: 320px;
    height: 320px;
  }

  .main-container .title {
    font-size: 48px;
  }

  .developer {
    font-size: 36px;
  }

  .line {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .line {
    width: 100%;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #1a1a1a;
  border: 2px solid #e22000;
  border-radius: 10px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 28px;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 2001;
}

.close-btn:hover {
  color: #e22000;
}

.modal-body {
  color: white;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.modal-body h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #e22000;
  text-align: center;
}

.modal-body h3 {
  font-size: 24px;
  color: #e22000;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section {
  margin-bottom: 35px;
}

.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;
  flex-shrink: 0;
  user-select: none;
}

.demo {
  display: inline-flex;
  width: fit-content;
}

.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;
  overflow-wrap: break-word;
}

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

.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);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
  }

  .modal-body h2 {
    font-size: 24px;
  }

  .modal-body h3 {
    font-size: 20px;
  }

  .item-title {
    font-size: 18px;
  }

  .item-subtitle {
    font-size: 16px;
  }

  .item-date {
    font-size: 14px;
  }

  .item-description {
    font-size: 14px;
  }

  .item-logo {
    width: 40px;
    height: 40px;
  }

  .skill-tag {
    font-size: 14px;
    padding: 6px 12px;
  }
}
