/* Полный оптимизированный CSS файл для EdPlatform
 * Современная темная/светлая тема с фиолетово-розовыми акцентами
 */

/* ===== ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ ===== */
:root {
  /* Базовые переменные */
  --font-main: 'Montserrat', sans-serif;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Светлая тема (по умолчанию) */
  --accent-primary: #8e2de2; /* Фиолетовый */
  --accent-secondary: #f958ec; /* Розовый */
  --accent-gradient: linear-gradient(90deg, #8e2de2, #f958ec);
  --accent-gradient-hover: linear-gradient(45deg, #7928ca, #f958ec, #8e2de2);
  
  --bg-main: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.95);
  
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #888888;
  --text-on-accent: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 6px 20px rgba(142, 45, 226, 0.2);
}

/* Темная тема */
body.dark-theme {
  --accent-primary: #9c42e2; /* Чуть светлее фиолетовый для темной темы */
  --accent-secondary: #ff64f7; /* Чуть светлее розовый для темной темы */
  --accent-gradient: linear-gradient(90deg, #9c42e2, #ff64f7);
  --accent-gradient-hover: linear-gradient(45deg, #8a2be2, #ff64f7, #9c42e2);
  
  --bg-main: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #282828;
  --bg-header: rgba(30, 30, 30, 0.95);
  
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #8a8a8a;
  --text-on-accent: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 6px 20px rgba(156, 66, 226, 0.3);
}

/* ===== СБРОС СТИЛЕЙ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Анимации появления */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ХЕДЕР ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-header);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(142, 45, 226, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.text-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #9c42e2, #ff64f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  margin: 0;
  text-transform: uppercase;
}

.logo-highlight {
  color: #ff64f7;
  position: relative;
}

/* Неоновое свечение логотипа */
.text-logo::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 88, 236, 0.3);
  filter: blur(8px);
  opacity: 0;
  animation: pulse-logo 2s ease-in-out infinite alternate;
}

@keyframes pulse-logo {
  0% {
    opacity: 0.3;
    filter: blur(8px);
  }
  100% {
    opacity: 0.7;
    filter: blur(12px);
  }
}

/* Навигация */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li {
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

nav ul li:hover {
  color: var(--accent-secondary);
}

nav ul li a {
  position: relative;
  padding-bottom: 5px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--accent-secondary);
  font-weight: 500;
}

/* Переключатель языков */
.lang-switch {
  margin-left: 20px;
  display: flex;
  gap: 10px;
}

.lang-switch button {
  background-color: var(--accent-secondary);
  color: var(--text-on-accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lang-switch button:hover {
  background-color: var(--accent-primary);
}

/* Кнопка CTA */
.cta-btn {
  font-family: 'Montserrat', sans-serif;
  margin-left: 20px;
  padding: 10px 20px;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  border: none;
  border-radius: 25px;
  color: var(--text-on-accent);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(142, 45, 226, 0.5);
  animation: gradientMove 5s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease-in-out;
  opacity: 0.3;
}

.cta-btn:hover {
  transform: scale(1.05);
  background: var(--accent-gradient-hover);
  box-shadow: var(--shadow-accent);
}

.cta-btn:hover::after {
  left: 100%;
}

/* Переключатель темы */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: 0 2px 10px rgba(142, 45, 226, 0.4);
  margin-left: 15px;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.6);
}

.theme-toggle i {
  color: var(--text-on-accent);
  font-size: 18px;
  transition: var(--transition-normal);
}

/* Иконки для переключателя темы */
.sun-icon, .moon-icon {
  position: absolute;
  transition: var(--transition-normal);
}

body:not(.dark-theme) .sun-icon {
  opacity: 0;
  transform: translateY(20px);
}

body:not(.dark-theme) .moon-icon {
  opacity: 1;
  transform: translateY(0);
}

body.dark-theme .sun-icon {
  opacity: 1;
  transform: translateY(0);
}

body.dark-theme .moon-icon {
  opacity: 0;
  transform: translateY(-20px);
}

/* Гамбургер-меню для мобильных */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--text-primary);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-main);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: left 0.3s ease;
  }
  
  nav ul.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
}

/* ===== ГЛАВНЫЙ БАННЕР (HERO SECTION) ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-top: 60px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .slide {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: saturate(1.2) contrast(1.1);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(142, 45, 226, 0.3) 0%, 
    rgba(142, 45, 226, 0) 50%, 
    rgba(249, 88, 236, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

body.dark-theme .hero::after {
  background: linear-gradient(135deg, 
    rgba(156, 66, 226, 0.4) 0%, 
    rgba(142, 45, 226, 0.1) 50%, 
    rgba(255, 100, 247, 0.4) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  padding: 30px;
  color: white;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  animation: fadeInUp 1s forwards;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  animation: fadeInUp 1.2s forwards;
}

.hero .cta-btn {
  font-family: 'Montserrat', sans-serif;
  padding: 15px 30px;
  font-size: 1.1rem;
  animation: fadeInUp 1.4s forwards;
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Кнопка скролла вниз */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.scroll-down:hover {
  background: var(--accent-gradient);
  transform: translateX(-50%) translateY(-5px);
}

.scroll-down i {
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== ОСНОВНЫЕ СЕКЦИИ ===== */
section {
  padding: 100px 20px;
  background: var(--bg-main);
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(249, 88, 236, 0.2);
  animation: fadeInUp 1s forwards;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Фоновые градиентные сетки */
body.dark-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(142, 45, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 45, 226, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

body:not(.dark-theme)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(142, 45, 226, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 45, 226, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* Уголки градиентов на секциях */
#about::before, #help::before, #how::before, #portfolio::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.1) 0%, transparent 70%);
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
}

#about::after, #help::after, #how::after, #portfolio::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 88, 236, 0.1) 0%, transparent 70%);
  bottom: 0;
  right: 0;
  border-radius: 50%;
  pointer-events: none;
}

body.dark-theme #about::before, 
body.dark-theme #help::before, 
body.dark-theme #how::before, 
body.dark-theme #portfolio::before {
  background: radial-gradient(circle, rgba(156, 66, 226, 0.15) 0%, transparent 70%);
}

body.dark-theme #about::after, 
body.dark-theme #help::after, 
body.dark-theme #how::after, 
body.dark-theme #portfolio::after {
  background: radial-gradient(circle, rgba(255, 100, 247, 0.15) 0%, transparent 70%);
}

/* ===== БЛОК "О КОМАНДЕ" ===== */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.founder-profile {
  display: flex;
  align-items: center;
  justify-content: center; /* Центрирование элементов */
  gap: 40px; /* Промежуток между фото и текстом */
  margin: 0 auto; /* Центрирование всего блока в родительском контейнере */
  max-width: 800px; /* Ограниченная ширина для более аккуратного размещения */
}

.founder-text {
  max-width: 500px;
}

.founder-photo {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  box-shadow: 0 10px 25px rgba(142, 45, 226, 0.3);
  border: 3px solid transparent;
  background: 
    linear-gradient(var(--bg-main), var(--bg-main)) padding-box,
    var(--accent-gradient) border-box;
  transition: all 0.3s ease;
}

.founder-photo::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--accent-gradient);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.5s ease;
}

.founder-profile:hover .founder-photo {
  transform: scale(1.05) rotate(5deg);
}

.founder-profile:hover .founder-photo::after {
  opacity: 0.4;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.founder-profile:hover .founder-photo img {
  transform: scale(1.1);
}

.founder-text {
  text-align: left;
  max-width: 500px;
}

.founder-text h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.advantages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  width: 120px;
  transition: transform 0.3s ease;
}

.advantage:hover {
  transform: translateY(-10px);
}

.advantage i {
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  color: white;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(142, 45, 226, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.advantage i::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.2;
    filter: blur(10px);
  }
  100% {
    opacity: 0.5;
    filter: blur(15px);
  }
}

.advantage i:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(142, 45, 226, 0.5);
}

.advantage p {
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.advantage:hover p {
  color: var(--accent-secondary);
}

/* ===== БЛОК "МЫ ПОМОГАЕМ" ===== */
.help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  width: 300px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(142, 45, 226, 0.1);
  box-shadow: var(--shadow-sm);
}

body.dark-theme .card {
  background: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(156, 66, 226, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
              transparent, 
              rgba(255, 255, 255, 0.05), 
              transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.card:hover::before {
  left: 100%;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.card-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.card:hover .card-content h3::after {
  width: 100%;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.card-content .btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  border: none;
  border-radius: 20px;
  color: var(--text-on-accent);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-content .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
              transparent, 
              rgba(255, 255, 255, 0.2), 
              transparent);
  transition: left 0.5s ease;
}

.card-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

.card-content .btn:hover::after {
  left: 100%;
}

/* ===== БЛОК "КАК НАЧАТЬ" ===== */
/* Полная переработка секции "Как начать" */
#how {
  position: relative;
  overflow: visible;
}

/* Новая стабильная линия соединения */
.timeline {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  margin: 80px 0;
  position: relative;
}

/* Соединительная линия между шагами */
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 4px;
  background: linear-gradient(90deg, #8e2de2, #f958ec, #8e2de2);
  background-size: 200% 100%;
  animation: gradientMove 5s linear infinite;
  z-index: 1;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(142, 45, 226, 0.5);
}

body.dark-theme .timeline::before {
  box-shadow: 0 0 20px rgba(156, 66, 226, 0.7);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Отдельный шаг временной шкалы */
.timeline-step {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 20px;
  width: 220px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
  margin: 20px;
  cursor: pointer;
  border: 1px solid rgba(142, 45, 226, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .timeline-step {
  background: rgba(255, 255, 255, 0.8);
}

body.dark-theme .timeline-step {
  border: 1px solid rgba(156, 66, 226, 0.3);
  background: rgba(40, 40, 40, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}


/* Эффект наведения */
.timeline-step:hover {
   animation-play-state: paused;
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(142, 45, 226, 0.2);
  z-index: 3;
}

/* Иконки шагов */
.step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  color: white;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(142, 45, 226, 0.3);
  z-index: 2;
  transition: all 0.3s ease;
}

body.dark-theme .step-icon {
  box-shadow: 0 8px 25px rgba(156, 66, 226, 0.4);
}

.timeline-step:hover .step-icon {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(142, 45, 226, 0.5);
}

/* Эффект ореола вокруг иконок */
.step-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite alternate;
}

/* Текст шага */
.step-text h3 {
  font-size: 1.3rem;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.timeline-step:hover .step-text h3 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-text p {
  line-height: 1.5;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}


.timeline-step:nth-child(odd)::after {
  top: auto;
  bottom: 50%;
  transform: translateX(-50%);
}

.timeline-step:nth-child(even)::after {
  transform: translateX(-50%);
}

.timeline-step:hover::after {
  height: 80px;
  background: var(--accent-gradient);
}

/* ===== БЛОК "КЕЙСЫ И ПОРТФОЛИО" ===== */
.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.project {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(142, 45, 226, 0.1);
  position: relative;
}

body.dark-theme .project {
  background: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(156, 66, 226, 0.2);
}

.project:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(142, 45, 226, 0.2);
  z-index: 2;
}

.img-hover-zoom {
  overflow: hidden;
}

.project img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover img {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
  position: relative;
}

.project-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.project-content h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.project:hover .project-content h4::after {
  width: 100%;
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Эффект отражения для проектов */
.project.reflection::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  transform: scaleY(-1);
  opacity: 0.3;
}

/* ===== БЛОК CTA ===== */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.1;
  animation: rotateCTA 20s linear infinite;
}

.cta-section::before {
  background: var(--accent-primary);
  top: -150px;
  left: -150px;
}

.cta-section::after {
  background: var(--accent-secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

@keyframes rotateCTA {
  0% { transform: rotate(0deg) translateX(0) translateY(0); }
  25% { transform: rotate(90deg) translateX(30px) translateY(30px); }
  50% { transform: rotate(180deg) translateX(0) translateY(60px); }
  75% { transform: rotate(270deg) translateX(-30px) translateY(30px); }
  100% { transform: rotate(360deg) translateX(0) translateY(0); }
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.cta-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 30px auto;
  color: var(--text-secondary);
}

.cta-section .cta-btn {
  font-family: 'Montserrat', sans-serif;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-width: 2px;
}

/* ===== ФУТЕР ===== */
footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 60px 20px 40px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(142, 45, 226, 0.2);
}

body.dark-theme footer {
  border-top: 1px solid rgba(156, 66, 226, 0.3);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-container div {
  flex: 1;
  min-width: 200px;
}

footer h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

footer h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

footer div:hover h3::after {
  width: 100%;
}

footer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

footer a {
  color: var(--text-primary);
  position: relative;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-secondary);
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer .logo {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

footer .text-logo {
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

footer .lang-switch {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}

footer p.copyright {
  margin-top: 40px;
  text-align: center;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .theme-toggle {
    position: fixed;
    top: 70px; /* если высота header 60px, плюс небольшой отступ */
    right: 20px;
    z-index: 1100; /* чтобы кнопка была поверх прочего контента */
  }
}


/* ===== АНИМАЦИЯ ПЕРЕХОДА МЕЖДУ ТЕМАМИ ===== */
.theme-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
  transition: background-color 0.5s ease;
}

.theme-transition.active {
  background-color: rgba(142, 45, 226, 0.15);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ И АНИМАЦИИ ===== */
/* Эффект частиц при клике на кнопки */
@keyframes particleBurst {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

.particle-burst {
  position: relative;
  overflow: visible;
}

.particle-burst::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.particle-burst.active::before {
  animation: particleBurst 0.6s ease-out forwards;
}

/* Эффект подсветки при активации */
@keyframes highlight {
  0% { box-shadow: 0 0 0 0 rgba(249, 88, 236, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(249, 88, 236, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 88, 236, 0); }
}

.highlight {
  animation: highlight 1.5s ease-out;
}

/* Неоновый текст */
.neon-text {
  text-shadow: 0 0 10px rgba(249, 88, 236, 0.8), 
               0 0 20px rgba(249, 88, 236, 0.5), 
               0 0 30px rgba(142, 45, 226, 0.3);
}

/* Неоновые рамки */
.neon-border {
  border: 1px solid transparent;
  border-image: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-image-slice: 1;
  box-shadow: 0 0 10px rgba(142, 45, 226, 0.5), 
              inset 0 0 10px rgba(249, 88, 236, 0.3);
}

/* Стилизация для tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--accent-gradient);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-15px);
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .founder-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .founder-text {
    text-align: center;
  }
  
  .timeline::before {
    left: 10%;
    width: 80%;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-content {
    width: 90%;
    max-width: 500px;
    padding: 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .text-logo {
    font-size: 1.5rem;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  
  .theme-toggle i {
    font-size: 16px;
  }
  
  .timeline-step {
    margin-bottom: 40px;
  }
  
  .timeline-step::after {
    display: none;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  #about::before, #help::before, #how::before, #portfolio::before,
  #about::after, #help::after, #how::after, #portfolio::after {
    width: 150px;
    height: 150px;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .project-content h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    width: 95%;
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  
  .theme-toggle i {
    font-size: 14px;
  }
  
  .card {
    width: 100%;
  }
  
  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .step-text h3 {
    font-size: 1.1rem;
  }
  
  .step-text p {
    font-size: 0.9rem;
  }
  
  .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
}

/* Исправление размытой кнопки в CTA-секции */
.cta-section .cta-btn {
  filter: none !important; /* Убираем возможное размытие */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 0 15px rgba(142, 45, 226, 0.7) !important; /* Четкая тень */
  border: 2px solid rgba(255, 255, 255, 0.5) !important; /* Четкая граница */
  z-index: 10 !important; /* Увеличиваем z-index */
  position: relative !important;
  pointer-events: auto !important; /* Гарантируем кликабельность */
  cursor: pointer !important;
  opacity: 1 !important;
  transform: none !important; /* Фиксированная позиция без трансформаций */
  transition: transform 0.3s ease, background-color 0.3s ease !important; /* Только базовые анимации */
}

/* Отключаем возможные конфликтующие анимации */
.cta-section .cta-btn.pulse-btn,
.cta-section .cta-btn.gradient-move {
  animation: none !important;
}

/* Исправление фона CTA-секции */
.cta-section::before,
.cta-section::after {
  animation: none !important; /* Отключаем анимации фона */
  opacity: 0.05 !important; /* Снижаем интенсивность */
}

/* При наведении просто меняем масштаб без сложных эффектов */
.cta-section .cta-btn:hover {
  transform: scale(1.05) !important;
  background: linear-gradient(45deg, #8a2be2, #ff64f7) !important;
}

/* Исправление блеска, выходящего за границы кнопок */
.btn, 
.cta-btn {
  position: relative;
  overflow: hidden !important; /* Обрезаем всё, что выходит за границы */
  box-shadow: 0 0 10px rgba(142, 45, 226, 0.5) !important; /* Уменьшаем внешнее свечение */
}

/* Ограничиваем эффект блеска внутри кнопки */
.btn::after, 
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60% !important; /* Уменьшаем ширину блика */
  height: 100%;
  background: linear-gradient(90deg, 
              transparent, 
              rgba(255, 255, 255, 0.2), 
              transparent) !important;
  opacity: 0.7;
  transform: skewX(-25deg);
  transition: left 0.5s ease-in-out;
}

/* Для контейнеров с кнопками (чтобы свечение не выходило) */
.card-content, 
.hero-content,
.cta-section .content {
  overflow: visible !important; /* Разрешаем содержимому выходить */
}

/* Даем кнопкам немного больше пространства в контейнерах */
.btn, .cta-btn {
  margin: 5px !important;
}

/* Исправление для конкретного эффекта частиц */
.particle-burst::before {
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Если используется эффект пульсации, ограничиваем его тоже */
@keyframes pulse-fixed {
  0% { box-shadow: 0 0 0 0 rgba(142, 45, 226, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(142, 45, 226, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 45, 226, 0); }
}

.pulse-btn {
  animation: pulse-fixed 2s infinite !important;
}