/* Удаляем или комментируем принудительное скрытие курсора */
/* html, body, * {
    cursor: none !important;
} */
/* Remove scrollbar from all elements */
html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
}

/* For Webkit browsers like Chrome, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* If you still want scrolling functionality but no visible scrollbar */
body {
  overflow-y: auto;
}
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #4a90e2; /* Приятный синий */
  --accent-hover: #357abd; /* Чуть темнее при наведении */
  --nav-height: 70px;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.1);
  --font-primary: "Comfortaa", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  position: relative;
}

/* Добавляем стили для контейнера частиц */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* Обновляем стили для частиц */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

/* Убеждаемся, что весь контент находится поверх частиц */
.navbar,
section,
.hero-content {
  position: relative;
  z-index: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  font-family: var(--font-primary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.nav-actions button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.nav-actions button i {
  font-size: 1.2rem;
}

.nav-actions button:hover {
  background: var(--accent);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  z-index: 1;
}

/* Удаляем старые стили для #particles */

.hero-content {
  text-align: center;
  z-index: 20;
  animation: fadeIn 1s ease-out;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin: 1rem 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.hero-logo {
  width: 256px;
  height: 256px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

section {
  padding: 5rem 2rem;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  background: rgba(
    10,
    10,
    10,
    0.8
  ); /* Добавляем полупрозрачный фон для лучшей читаемости */
  backdrop-filter: blur(5px);
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 2rem 0 4rem; /* Увеличиваем отступы */
  position: relative;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -15px; /* Увеличиваем отступ линии */
  left: 50%;
  transform: translateX(-50%);
  width: 80px; /* Делаем линию длиннее */
  height: 3px;
  background: var(--accent);
}

.projects-grid,
.team-grid,
.collaborations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.projects-grid,
.collaborations-grid {
  grid-template-columns: repeat(3, 1fr); /* Изменено с 2 на 3 колонки */
  gap: 2rem; /* Увеличиваем отступы между картами */
  max-width: 1600px;
  padding: 2rem;
}

/* Обновляем стили сетки команды */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  justify-content: center;
  width: 100%;
}

.team-card,
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 2rem;
  gap: 2rem;
  min-height: 350px;
}

/* Update team card styling to use border color instead of background */
.team-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  min-height: 320px; /* Фиксированная минимальная высота */
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.1); /* Default border */
  transition: all 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Center the avatar properly */
.member-avatar {
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.member-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.15); /* Default shadow */
}

.team-card:hover .member-avatar img {
  transform: scale(1.05);
}

/* Tech icons hover effect */
.tech-icon {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tech-svg-icon {
  width: 1.8rem;
  height: 1.8rem;
  /* Default filter - this will be completely replaced on hover with custom colors */
  filter: invert(70%) sepia(0%) saturate(0%) hue-rotate(163deg) brightness(101%)
    contrast(97%);
  transition: filter 0.2s ease, transform 0.2s ease;
  vertical-align: -0.125em;
}

.tech-icon:hover {
  transform: translateY(-2px);
}

/* Ensure social icons use their custom colors */
.member-social .social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Default color that will be replaced by custom color */
  color: var(--text-secondary);
  font-size: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  text-decoration: none;
}

.member-social .social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  /* The color will be set directly by the style attribute in JS */
}

/* Remove specific social platform colors that might override our custom colors */
.member-social .social-icon:hover i.fa-telegram,
.member-social .social-icon:hover i.fa-discord,
.member-social .social-icon:hover i.fa-steam,
.member-social .social-icon:hover i.fa-github,
.member-social .social-icon:hover i.fa-twitter,
.member-social .social-icon:hover i.fa-instagram,
.member-social .social-icon:hover i.fa-vk {
  /* This ensures the color is determined by the parent's style attribute */
  color: inherit;
}

.tech-icon:hover .tech-svg-icon {
  transform: translateY(-2px);
  /* Default filter will be overridden by JS for cards with custom colors */
  filter: invert(54%) sepia(93%) saturate(1355%) hue-rotate(198deg)
    brightness(88%) contrast(92%);
}

/* Keep the hover styles but they'll be overridden by JS for cards with custom colors */
.tech-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Ensure all cards have proper alignment */
.member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-grow: 1;
}

.member-info-header {
  text-align: center;
  margin-bottom: auto;
  width: 100%;
}

/* Fix member skills section */
.member-skills {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  transition: all 0.3s ease;
}

.member-skills i {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.member-skills i:hover {
  color: var(--accent);
}

.member-skills .tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem; /* Фиксированная ширина для выравнивания */
  height: 2.2rem; /* Фиксированная высота для выравнивания */
}

.member-skills .tech-icon i {
  font-size: 1.8rem;
  transition: all 0.2s ease;
}

.member-skills .tech-icon {
  position: relative;
  cursor: pointer;
}

.member-skills .tech-icon i {
  font-size: 1.8rem;
  transition: all 0.2s ease;
}

.member-skills .tech-tooltip {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.member-skills .tech-icon:hover i {
  color: var(--accent);
  transform: translateY(-2px);
}

.member-skills .tech-icon:hover .tech-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Добавляем стили для SVG иконок */
.tech-svg-icon {
  width: 1.8rem;
  height: 1.8rem;
  filter: invert(70%) sepia(0%) saturate(0%) hue-rotate(163deg) brightness(101%)
    contrast(97%);
  transition: all 0.2s ease;
  vertical-align: -0.125em;
}

.tech-icon:hover .tech-svg-icon {
  filter: invert(54%) sepia(93%) saturate(1355%) hue-rotate(198deg)
    brightness(88%) contrast(92%);
  transform: translateY(-2px);
}

.project-card {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 200px;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 30, 30, 0.7); /* Изменен эффект ховера */
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.project-meta {
  flex: 1;
}

.project-meta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2рем;
  color: var (--text-primary);
}

.version {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.project-preview {
  width: 80px; /* Увеличен с 64px до 80px */
  height: 80px; /* Увеличен с 64px до 80px */
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px; /* Уменьшаем отступ до минимума */
}

.project-preview img {
  max-width: 95%; /* Увеличиваем максимальную ширину */
  max-height: 120%; /* Увеличиваем максимальную высоту */
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-tech-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  gap: 0.5rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem; /* Уменьшен отступ между иконками */
  align-items: center;
}

.project-team {
  display: flex;
  gap: 0.5рем; /* Уменьшен отступ между аватарками */
  align-items: center;
}

.project-tech-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0;
  border: none;
}

.project-tech {
  display: flex;
  gap: 2rem; /* Увеличен отступ между иконками */
  padding: 0.75rem 0;
  align-items: center;
}

.tech-icon {
  font-size: 1.8rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative; /* Для позиционирования подсказки */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.tech-icon .tech-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.tech-icon:hover .tech-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.project-team {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: none; /* Убрана граница */
}

.author-avatar {
  position: relative;
}

.author-avatar img {
  width: 32px; /* Уменьшен размер аватаров до размера иконок */
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.author-name {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.author-avatar:hover img {
  transform: scale(1.15);
  border-color: var(--accent);
}

.author-avatar:hover .author-name {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0; /* Убраны отступы */
  border: none; /* Убрана граница */
  flex-grow: 1;
}

.project-action {
  margin-top: auto;
  text-align: right;
  padding: 0; /* Убраны отступы */
  border: none; /* Убрана граница */
  position: relative;
  z-index: 99;
  pointer-events: all !important;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--text-primary);
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
  text-align: center;
  width: auto;
  user-select: none;
  pointer-events: all !important;
  position: relative;
  z-index: 100;
}

.btn-download *,
.btn-download i,
.btn-download span {
  pointer-events: auto !important;
  user-select: none;
}

.btn-download:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-download:active {
  transform: translateY(0);
}

/* Add styles for the visit button */
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--text-primary);
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
  text-align: center;
  width: auto;
  user-select: none;
  pointer-events: all !important;
  position: relative;
  z-index: 100;
}

.btn-visit *,
.btn-visit i,
.btn-visit span {
  pointer-events: auto !important;
  user-select: none;
}

.btn-visit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-visit:active {
  transform: translateY(0);
}

.development-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
}

.project-header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.project-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0;
  border: none;
}

.tech-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem; /* Увеличен размер иконок языков */
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tech-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.tech-icon:hover .tech-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.project-tech i {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.project-tech i:hover {
  color: var(--accent);
}

.project-team {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-avatars {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.team-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.team-avatars img:hover {
  transform: scale(1.2);
  border-color: var(--accent);
}

.project-footer {
  padding: 0.75rem 0 0; /* Уменьшен верхний отступ */
  border: none; /* Убрана граница */
  text-align: right;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5рем;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.development-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 25px;
  font-family: var(--font-primary);
}

.member-avatar img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
}

.member-info {
  padding: 1rem;
  text-align: center;
}

.project-header img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.project-body {
  padding: 1rem;
}

.team-avatars {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.team-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

button,
input,
select,
textarea,
.nav-links a,
.btn-primary,
.development-badge {
  font-family: var(--font-primary);
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 68, 68, 0.9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  z-index: 1002;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(46, 177, 57, 0.9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  z-index: 1002;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fallback-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: var(--card-bg);
  border-radius: 8px;
  margin: 1rem 0;
}

.fallback-message h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.fallback-message p {
  color: var(--text-secondary);
}

footer {
  background: var(--bg-secondary);
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.social-links a.discord:hover {
  background: #5865f2;
}

.social-links a.email:hover {
  background: #ea4335;
}

.social-links a.telegram:hover {
  background: #0088cc;
}

/* Discord Footer Widget Styles */
.social-links a.discord {
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
}

.social-links a.discord .discord-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a.discord .discord-icon,
.social-links a.discord .discord-count {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.social-links a.discord .discord-count {
  flex-direction: column;
  color: white;
  font-size: 12px;
  text-align: center;
  line-height: 1;
}

social-links a.discord .discord-count .count-number {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px;
}

.social-links a.discord .discord-count .count-label {
  font-size: 9px;
  opacity: 0.8;
}

/* Animation for Discord icon/count transition */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Удаляем все стили для discord-widget */
.discord-widget,
.discord-header,
.discord-info,
.discord-stat,
.join-discord {
  display: none;
}

/* Удаляем стили для scroll-top */
.scroll-top {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-logo {
    width: 180px;
    height: 180px;
  }

  section {
    padding: 3rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .discord-widget {
    max-width: 200px;
    margin: 1rem auto;
  }

  .discord-widget iframe {
    width: 100%;
  }

  .project-preview {
    width: 56px; /* Увеличен с 48px до 56px для мобильных */
    height: 56px;
    padding: 1px; /* Ещё меньше отступ на мобильных */
  }

  .project-tech-team {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .project-header {
    gap: 1rem;
  }

  .tech-icon {
    font-size: 1.5rem;
  }

  .author-avatar img {
    width: 28px;
    height: 28px;
  }

  .member-skills {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .member-skills .tech-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .member-skills .tech-icon i {
    font-size: 1.5rem;
  }

  .project-card {
    padding: 0.75rem;
  }
}

@media (max-width: 1400px) {
  .projects-grid,
  .collaborations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-preview {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 1200px) {
  .project-preview {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 900px) {
  .projects-grid,
  .collaborations-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для форм авторизации */
.auth-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  margin: 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-primary);
}

.password-strength {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-form button:hover {
  background: var(--accent-hover);
}

/* Стили для модальных окон */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  padding: 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
}

.auth-switch-btn:hover {
  color: var(--text-primary);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Стили для аватара пользователя */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.2rem;
}

/* Стили для выпадающего меню */
.user-menu {
  position: fixed;
  top: calc(var(--nav-height) + 10px);
  right: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 1rem;
  text-align: center;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.user-role {
  font-size: 0.8rem;
  color: var(--accent);
}

.user-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.user-status {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.user-status.verified {
  color: #00c851;
}

.user-status.unverified {
  color: #ff4444;
}

.user-status i {
  font-size: 1rem;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  border: none;
  background: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-item i {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Обновляем стили аватара и плейсхолдера */
.nav-actions .account-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar,
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav-actions .account-btn:hover .avatar-placeholder {
  transform: scale(1.1);
}

/* Add styles for member social links */
.member-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

.member-social .social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Default color that will be replaced by custom color */
  color: var(--text-secondary);
  font-size: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  text-decoration: none;
}

.member-social .social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  /* The color will be set directly by the style attribute in JS */
}

/* Remove specific social platform colors that might override our custom colors */
.member-social .social-icon:hover i.fa-telegram,
.member-social .social-icon:hover i.fa-discord,
.member-social .social-icon:hover i.fa-steam,
.member-social .social-icon:hover i.fa-github,
.member-social .social-icon:hover i.fa-twitter,
.member-social .social-icon:hover i.fa-instagram,
.member-social .social-icon:hover i.fa-vk {
  /* This ensures the color is determined by the parent's style attribute */
  color: inherit;
}
