/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕГО ПРОЕКТА XMT-ARGO ===== */

/* Общий фон для всех страниц */
.main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Пульсирующий эффект фона */
.bg-pulse {
  animation: bg-pulse 8s ease-in-out infinite;
}

@keyframes bg-pulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.1) saturate(1.1);
  }
}

/* ===== ЕДИНАЯ ТИПОГРАФИКА ===== */

/* Основные заголовки - используют Montserrat Alternates */
.page-title, .section-title, .hero-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.2;
}

/* Подзаголовки и описания */
.page-subtitle, .section-subtitle, .hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.5;
}

/* ===== ЕДИНАЯ СЕТКА ПРОЕКТОВ ===== */

/* Основная сетка - 3 колонки на десктопе */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  justify-content: start;
}

/* Планшеты - 2 колонки */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Мобильные - 1 колонка */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== ОБЩИЕ СТИЛИ КАРТОЧЕК ===== */

/* Базовая карточка проекта */
.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.03) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Изображение в карточке */
.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f8fafc;
}

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

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

/* Информация в карточке */
.project-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Теги в карточках */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== ОБЩИЕ КНОПКИ ===== */

/* Основная кнопка */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Основная кнопка - синяя для карточек проектов */
.project-card .btn-primary,
.lightbox-btn.primary {
  background: var(--accent-blue);
  color: white;
}

/* Оранжевые кнопки для hero и общих действий */
.btn-primary {
  background: var(--accent-orange);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Специальные hover эффекты для синих кнопок в карточках */
.project-card .btn-primary:hover,
.lightbox-btn.primary:hover {
  background: #2563eb;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */

/* Базовая секция */
.section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Мобильные устройства */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-description {
    font-size: 0.85rem;
  }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1199px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* ===== ЭФФЕКТЫ И АНИМАЦИИ ===== */

/* Стандартное свечение для заголовков */
.glow-text {
  text-shadow: 
    0 0 5px rgba(59, 130, 246, 0.8),
    0 0 10px rgba(59, 130, 246, 0.6),
    0 0 15px rgba(59, 130, 246, 0.4);
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    text-shadow: 
      0 0 5px rgba(59, 130, 246, 0.8),
      0 0 10px rgba(59, 130, 246, 0.6),
      0 0 15px rgba(59, 130, 246, 0.4);
  }
  100% {
    text-shadow: 
      0 0 8px rgba(59, 130, 246, 1),
      0 0 15px rgba(59, 130, 246, 0.8),
      0 0 20px rgba(59, 130, 246, 0.6);
  }
}

/* Плавное появление элементов */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== УТИЛИТЫ ===== */

/* Скрытие элементов */
.hidden {
  display: none !important;
}

/* Центрирование */
.text-center {
  text-align: center;
}

/* Полная ширина */
.w-full {
  width: 100%;
}

/* Отступы */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } 