/* Общие стили */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* Запрещаем выделение текста и объектов по всей странице */
body, *, *::before, *::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #000;
}

#bullet-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

.logo-r {
  position: relative;
  display: inline-block;
  color: #ffffff;
}

.language-switcher {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  background: #ffffff;
  color: #000000;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 20px 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section {
  margin-bottom: 60px;
}

.skill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.skill-btn {
  background: transparent;
  border: 1px solid #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.skill-btn:hover {
  background: #ffffff;
  color: #000000;
}

.skill-section {
  display: block;
  padding-top: 120px;
}

#contact {
  margin-top: 80px;
  text-align: center;
  padding-bottom: 80px;
}

h1, h2, h3 {
  margin: 0 0 15px;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}
h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
}
h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 30px;
}

.highlighted {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.8), 0 0 12px rgba(0, 255, 255, 0.8);
  transition: text-shadow 0.3s;
}

p {
  line-height: 1.5;
  margin: 0 0 10px;
  font-weight: 300;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.telegram-btn:hover {
  transform: scale(1.05);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top.show {
  opacity: 0.9;
  pointer-events: auto;
}

.bullet {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }
}
