/* Основные переменные */
:root {
  /* Цвета Казахстана */
  --primary-color: #007bc4;
  --secondary-color: #ffd100;
  --accent-color: #ff6b35;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Градиенты */
  --primary-gradient: linear-gradient(135deg, #007bc4 0%, #0056a3 100%);
  --secondary-gradient: linear-gradient(135deg, #ffd100 0%, #ffb800 100%);
  --hero-gradient: linear-gradient(135deg, #007bc4 0%, #0056a3 50%, #003d73 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;
  
  /* Размеры */
  --container-max-width: 1200px;
  --border-radius: 16px;
  --border-radius-small: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* Контейнер */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Кнопки */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--border-radius);
}

/* Навигация */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-color);
  z-index: 1000;
  position: relative;
}

.logo-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Главный экран */
.hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 209, 0, 0.1) 0%, transparent 50%);
  animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--glass-gradient);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) { top: 10%; left: 10%; width: 80px; height: 80px; }
.floating-element:nth-child(2) { top: 20%; right: 20%; width: 60px; height: 60px; }
.floating-element:nth-child(3) { bottom: 30%; left: 30%; width: 120px; height: 120px; }
.floating-element:nth-child(4) { bottom: 10%; right: 10%; width: 90px; height: 90px; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.highlight {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero карточка */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--glass-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card-header {
  margin-bottom: 20px;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
}

.status-dot.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.business-info h3 {
  margin-bottom: 8px;
}

.business-info p {
  opacity: 0.8;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.ai-thinking {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

.thinking-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
  animation: thinking 1.5s infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
  0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
  30% { transform: scale(1.2); opacity: 1; }
}

.match-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--border-radius-small);
}

.match-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.match-info p {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.match-score {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 16px;
}

/* Секции */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Возможности */
.features {
  padding: 100px 0;
  background: var(--light-gray);
}

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

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Как работает */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 40px;
  align-items: center;
}

.step:nth-child(even) {
  grid-template-columns: 200px 1fr 80px;
}

.step:nth-child(even) .step-number {
  order: 3;
}

.step:nth-child(even) .step-content {
  order: 2;
}

.step:nth-child(even) .step-visual {
  order: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.step-content p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.6;
}

.step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}

/* Визуальные элементы шагов */
.form-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}

.form-field {
  height: 12px;
  background: var(--light-gray);
  border-radius: 6px;
  animation: formFill 3s infinite;
}

.form-field:nth-child(2) { animation-delay: 1s; }
.form-field:nth-child(3) { animation-delay: 2s; }

@keyframes formFill {
  0%, 30% { background: var(--light-gray); }
  50%, 80% { background: var(--primary-color); }
  100% { background: var(--light-gray); }
}

.ai-brain {
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: brainWave 2s infinite;
}

.brain-wave:nth-child(2) { animation-delay: 0.5s; }
.brain-wave:nth-child(3) { animation-delay: 1s; }

@keyframes brainWave {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.results-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  width: 150px;
  height: 40px;
  background: var(--light-gray);
  border-radius: var(--border-radius-small);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  animation: resultAppear 3s infinite;
}

.result-item:nth-child(2) { animation-delay: 1s; }

@keyframes resultAppear {
  0%, 30% { opacity: 0; transform: translateX(20px); }
  50%, 80% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(20px); }
}

.result-score {
  font-weight: 700;
  color: var(--success-color);
}

.document-stack {
  position: relative;
  width: 80px;
  height: 100px;
}

.document {
  position: absolute;
  width: 60px;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 4px;
  animation: documentStack 4s infinite;
}

.document:nth-child(1) { 
  left: 0; 
  top: 0; 
  animation-delay: 0s; 
  background: var(--light-gray);
}

.document:nth-child(2) { 
  left: 10px; 
  top: 10px; 
  animation-delay: 1s; 
}

.document:nth-child(3) { 
  left: 20px; 
  top: 20px; 
  animation-delay: 2s; 
}

@keyframes documentStack {
  0%, 25% { transform: translateX(0) translateY(0); }
  50%, 75% { transform: translateX(-20px) translateY(-20px); }
  100% { transform: translateX(0) translateY(0); }
}

/* О проекте */
.about {
  padding: 100px 0;
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--dark-gray);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.6;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.about-stat {
  text-align: center;
}

.about-stat h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.about-stat p {
  font-size: 0.9rem;
  margin: 0;
}

.about-team h3 {
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.about-team p {
  margin: 0;
}

.kazakhstan-map {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto;
}

.map-bg {
  font-size: 150px;
  opacity: 0.1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-point {
  position: absolute;
  cursor: pointer;
}

.point {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  position: relative;
  animation: mapPulse 3s infinite;
}

.point::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: mapRipple 3s infinite;
}

@keyframes mapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes mapRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.point-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--dark-gray);
  font-weight: 500;
  white-space: nowrap;
}

/* CTA секция */
.cta {
  padding: 100px 0;
  background: var(--hero-gradient);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Футер */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section a {
  color: var(--gray);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--gray);
}

/* Анимации появления */
[data-aos] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].animate {
  opacity: 1;
  transform: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
    transform: translateY(0);
  }
  
  .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .step:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    justify-content: center;
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-large {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .hero-card {
    padding: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
}

/* Система уведомлений */
.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.notification-content button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GitHub профили команды */
.team-profiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.team-member .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.team-member a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.team-member a:hover {
    color: var(--secondary-color);
} 