/* ===== ANIMATED HERO HEADER STYLES ===== */
/* Реализация согласно Creative Phase спецификации */

/* Google Fonts - Inter Display */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Animated Geometric Background */
.animated-hero-background {
  width: 100%;
  padding: 80px 20px 20px;
  position: relative;
  overflow: hidden;
  
  /* GPU Acceleration для высокой производительности */
  transform: translateZ(0);
}

/* Видео фон */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  
  /* Для плавности */
  transform: translateZ(0);
  will-change: transform;
}

/* Темный оверлей для лучшей читаемости текста */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* Все геометрические элементы удалены - оставлено только видео */

/* Анимации геометрических элементов удалены */

/* Контейнер для контента - левое выравнивание */
.hero-content {
  max-width: 800px;
  margin: 0;
  padding-left: 60px;
  position: relative;
  z-index: 10;
  
  /* GPU Acceleration */
  transform: translateZ(0);
  will-change: transform;
}

/* Основной заголовок - Inter Display */
.hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 3.8rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* Анимация появления */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Подзаголовок */
.hero-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  
  /* Анимация появления */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.7s forwards;
}

/* Описание */
.hero-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  
  /* Анимация появления */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Анимация появления текста */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Градиентный текст для заголовка */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 50%, #d4d4d4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

/* Анимация градиента в тексте */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-content {
    padding-left: 40px;
    max-width: 60%;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
  .animated-hero-background {
    padding: 60px 20px 20px;
  }
  
  .hero-content {
    padding-left: 20px;
    max-width: 90%;
  }
  
  .hero-title {
    font-size: 2.3rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .hero-content {
    padding-left: 16px;
    max-width: 95%;
  }
  
  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.015em;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
}

/* ===== ACCESSIBILITY ===== */

/* Поддержка prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animated-hero-background::before,
  .animated-hero-background::after {
    animation: none;
  }
  
  .shape {
    animation: none;
    transform: none;
  }
  
  .hero-title,
  .hero-subtitle,
  .hero-description {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .gradient-text {
    animation: none;
    background: #ffffff;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
  }
}

/* Высокая контрастность */
@media (prefers-contrast: high) {
  .hero-title {
    color: #ffffff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  }
  
  .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  }
  
  .hero-description {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Настройки для плавной анимации */
.animated-hero-background,
.hero-content,
.hero-title,
.hero-subtitle,
.hero-description {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Принудительное использование GPU для всех анимированных элементов */
.floating-shapes .shape {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
} 