/* styles.css */

/* Базовые стили и переменные */
:root {
  --primary-color: #00ffcc; /* Неоново-зеленый */
  --secondary-color: #ff00ff; /* Неоново-розовый */
  --accent-color: #0066ff; /* Электрический синий */
  --dark-bg: #000000; /* Глубокий черный фон */
  --text-color: #ffffff; /* Основной текст */
  --glow-effect: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
  --transition-speed: 0.3s;
}

/* Сброс стилей и базовая типографика */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 20%);
  min-height: 100vh;
  position: relative;
}

/* Контейнер для всего контента */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Фоновые анимированные элементы */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

.element-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.element-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  bottom: 15%;
  right: 10%;
  animation-delay: -5s;
}

.element-3 {
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(10px, 20px) scale(0.9);
  }
  75% {
    transform: translate(30px, -10px) scale(1.05);
  }
}

/* Заголовок с эффектом глитча */
.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
}

.header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  margin-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 4px;
  /* Эффект неонового свечения */
  text-shadow: var(--glow-effect);
  animation: pulse 2s infinite alternate;
}

/* Анимация пульсации заголовка */
@keyframes pulse {
  from {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
  }
  to {
    text-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
  }
}

/* Эффект глитча для заголовка */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  5% { clip: rect(12px, 9999px, 59px, 0); }
  10% { clip: rect(48px, 9999px, 29px, 0); }
  15% { clip: rect(42px, 9999px, 73px, 0); }
  20% { clip: rect(63px, 9999px, 27px, 0); }
  25% { clip: rect(34px, 9999px, 55px, 0); }
  30% { clip: rect(86px, 9999px, 73px, 0); }
  35% { clip: rect(20px, 9999px, 20px, 0); }
  40% { clip: rect(26px, 9999px, 60px, 0); }
  45% { clip: rect(25px, 9999px, 66px, 0); }
  50% { clip: rect(57px, 9999px, 98px, 0); }
  55% { clip: rect(5px, 9999px, 46px, 0); }
  60% { clip: rect(82px, 9999px, 31px, 0); }
  65% { clip: rect(54px, 9999px, 27px, 0); }
  70% { clip: rect(28px, 9999px, 99px, 0); }
  75% { clip: rect(45px, 9999px, 69px, 0); }
  80% { clip: rect(23px, 9999px, 85px, 0); }
  85% { clip: rect(1px, 9999px, 83px, 0); }
  90% { clip: rect(71px, 9999px, 20px, 0); }
  95% { clip: rect(52px, 9999px, 79px, 0); }
  100% { clip: rect(44px, 9999px, 44px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(52px, 9999px, 74px, 0); }
  10% { clip: rect(79px, 9999px, 85px, 0); }
  15% { clip: rect(75px, 9999px, 5px, 0); }
  20% { clip: rect(67px, 9999px, 61px, 0); }
  25% { clip: rect(14px, 9999px, 79px, 0); }
  30% { clip: rect(1px, 9999px, 66px, 0); }
  35% { clip: rect(86px, 9999px, 30px, 0); }
  40% { clip: rect(23px, 9999px, 98px, 0); }
  45% { clip: rect(85px, 9999px, 72px, 0); }
  50% { clip: rect(71px, 9999px, 75px, 0); }
  55% { clip: rect(2px, 9999px, 48px, 0); }
  60% { clip: rect(30px, 9999px, 16px, 0); }
  65% { clip: rect(59px, 9999px, 50px, 0); }
  70% { clip: rect(41px, 9999px, 62px, 0); }
  75% { clip: rect(2px, 9999px, 82px, 0); }
  80% { clip: rect(47px, 9999px, 73px, 0); }
  85% { clip: rect(3px, 9999px, 27px, 0); }
  90% { clip: rect(26px, 9999px, 55px, 0); }
  95% { clip: rect(42px, 9999px, 97px, 0); }
  100% { clip: rect(38px, 9999px, 49px, 0); }
}

.subtitle {
  font-size: 1.2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: flicker 3s infinite alternate;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.4;
  }
}

/* Секция профиля */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.profile-image-container {
  margin-bottom: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  padding: 5px;
  box-shadow: var(--glow-effect);
  animation: rotate 20s linear infinite;
  transition: transform var(--transition-speed);
}

.profile-image-container:hover {
  transform: scale(1.05) rotate(5deg);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.bio {
  max-width: 600px;
  font-size: 1.1rem;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ссылки на социальные сети */
.social-links {
  margin-bottom: 40px;
  text-align: center;
}

.social-links h2 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent-color);
  border-radius: 30px;
  text-decoration: none;
  color: var(--text-color);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.4), transparent);
  transition: 0.5s;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: rgba(0, 102, 255, 0.2);
  box-shadow: 0 0 15px var(--accent-color);
  transform: translateY(-5px);
}

.link-icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

.link-text {
  font-weight: 500;
}

/* Дополнительная информация */
.additional-info {
  text-align: center;
  margin-bottom: 40px;
}

.additional-info h2 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0 20px;
}

.interest-item {
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid var(--secondary-color);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  transition: all var(--transition-speed);
}

.interest-item:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--primary-color);
}

/* Футер */
.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(0, 255, 204, 0.3);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }
  
  .links-container {
    flex-direction: column;
    align-items: center;
  }
  
  .social-link {
    width: 80%;
    justify-content: center;
  }
  
  .link-icon {
    margin-right: 15px;
  }
  
  .interests-list {
    flex-direction: column;
    align-items: center;
  }
  
  .interest-item {
    width: 80%;
  }
}