/* ---------- GLOBAL ---------- */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: #e3e3e8;
  background: #0f0f12;
  overflow-x: hidden;
}
canvas#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* ---------- HEADER ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(40, 0, 60, 0.5);
  box-shadow: 0 0 20px rgba(140, 0, 255, 0.3);
  backdrop-filter: blur(5px);
  flex-direction: row;
  gap: 0;
  text-align: left;
}
header h1 {
  font-size: 1.6em;
  color: #b783ff;
  text-shadow: 0 0 12px #b783ff;
}

/* ---------- BUTTONS ---------- */
.btn-github,
.btn-telegram {
  text-decoration: none;
  color: #fff;
  background: #8b00ff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-github:hover,
.btn-telegram:hover {
  background: #a945ff;
  box-shadow: 0 0 20px #a945ff;
  transform: scale(1.05);
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 140px 20px 100px 20px;
}
.hero h2 {
  font-size: 3em;
  color: #b783ff;
  text-shadow: 0 0 30px #b783ff;
  line-height: 1.2;
}
.hero p {
  color: #ccc;
  max-width: 650px;
  margin: 25px auto 0;
  font-size: 1.15em;
  line-height: 1.5;
}

/* ---------- FEATURES & TEAM ---------- */
.features-wrapper,
.team-wrapper {
  max-width: 1260px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 28px;
}
.features-wrapper h2,
.team-wrapper h2 {
  font-size: 3em;
  color: #b783ff;
  text-shadow: 0 0 30px #b783ff;
}
.features-wrapper p,
.team-wrapper p {
  color: #ccc;
  font-size: 1.1em;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.features,
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature,
.member {
  background: rgba(28, 27, 34, 0.85);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(140, 0, 255, 0.15);
  transition: 0.4s;
  transform: translateY(30px);
  opacity: 0;
  animation: featureFade 1.5s forwards;
}
.feature:hover,
.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px #b783ff;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: rgba(183, 131, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 131, 255, 0.3);
  transition: 0.3s;
}
.feature-icon img {
  display: block;
  margin: 0 auto;
  width: 24px;
  height: 24px;
}

/* ---------- LANGUAGE SELECTOR ---------- */
#languageSelector {
background: rgba(40, 0, 60, 0.8);
color: #e3e3e8;
border: 1px solid #b783ff;
border-radius: 12px;
padding: 6px 12px;
font-weight: bold;
font-size: 0.85em;
cursor: pointer;
box-shadow: 0 0 15px rgba(183, 131, 255, 0.6);
transition: 0.3s;
}
#languageSelector:hover {
background: rgba(60, 0, 90, 0.9);
box-shadow: 0 0 25px rgba(183, 131, 255, 0.9);
transform: scale(1.05);
}
#languageSelector option {
background: #0f0f12;
color: #e3e3e8;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 35px;
  color: #999;
  background: rgba(0, 0, 0, 0.65);
  font-size: 0.9em;
}

/* ---------- ANIMATION ---------- */
@keyframes featureFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 12px;
    padding: 15px 25px;
    text-align: center;
  }
  header h1 {
    font-size: 1.4em;
  }
  .btn-github, .btn-telegram {
    padding: 10px 18px;
    font-size: 0.9em;
  }
  .features-wrapper, .team-wrapper {
    padding: 60px 24px;
  }
  .features-wrapper h2, .team-wrapper h2 {
    font-size: 2.5em;
  }
  .features-wrapper p, .team-wrapper p {
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 15px 70px 15px;
  }
  .hero h2 {
    font-size: 2.1em;
  }
  .hero p {
    font-size: 0.95em;
  }
  .features-wrapper, .team-wrapper {
    padding: 50px 20px;
  }
  .features-wrapper h2, .team-wrapper h2 {
    font-size: 2.1em;
  }
  .features-wrapper p, .team-wrapper p {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .features, .team {
    gap: 20px;
  }
  .feature, .member {
    padding: 25px 15px;
  }
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  .feature-icon img {
    width: 20px;
    height: 20px;
  }
  footer {
    font-size: 0.8em;
    padding: 25px 15px;
  }
}

@media (max-width: 400px) {
  header h1 {
    font-size: 1.2em;
  }
  .hero h2 {
    font-size: 1.8em;
  }
  .features-wrapper h2, .team-wrapper h2 {
    font-size: 1.8em;
  }
  .features-wrapper p, .team-wrapper p {
    font-size: 0.9em;
  }
  .btn-github, .btn-telegram {
    width: 100%;
    max-width: 260px;
  }
}
.member-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(183, 131, 255, 0.2);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(183, 131, 255, 0.1);
    border: 1px solid rgba(183, 131, 255, 0.3);
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(183, 131, 255, 0.2);
    border-color: #b783ff;
    box-shadow: 0 0 15px rgba(183, 131, 255, 0.6);
    transform: scale(1.1);
}

.social-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0.8);
    transition: 0.3s;
}

.social-link:hover .social-icon {
    filter: brightness(1);
}

/* Обновляем стиль member для учета соцсетей */
.member {
    background: rgba(28, 27, 34, 0.85);
    padding: 30px 25px 25px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(140, 0, 255, 0.15);
    transition: 0.4s;
    transform: translateY(30px);
    opacity: 0;
    animation: featureFade 1.5s forwards;
}
