/* styles.css */

[v-cloak] { display: none; }

/* Основные кнопки */
.cta-button {
  display: inline-block;
  background-color: #3B82F6; /* blue-500 */
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background-color: #2563EB; /* blue-600 */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
.cta-button-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  background-color: #3B82F6;
  color: white;
  border-radius: 6px;
  font-weight: 600;
}
.cta-button-sm:hover {
    background-color: #2563EB;
}

/* Форма */
.form-input {
  flex-grow: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  border: 1px solid #4B5563; /* gray-600 */
  background-color: #F9FAFB; /* gray-50 */
  color: #1F2937; /* gray-800 */
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Таймлайн */
.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 3rem;
  width: 100%;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  top: 0;
  left: -6px; /* Для мобильных */
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background-color: #3B82F6;
  border: 3px solid #f9fafb;
}
.timeline-content {
  padding-left: 2rem; /* Для мобильных */
  width: 100%;
}
.timeline-step {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: #DBEAFE; /* blue-100 */
  color: #1D4ED8; /* blue-700 */
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Адаптация таймлайна для десктопа */
@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
  }
  .timeline-item:nth-child(odd) {
    align-self: flex-start;
    padding-right: 2rem;
  }
  .timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-left: 2rem;
  }
  .timeline-content { padding-left: 0; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: right; }
  .timeline-item:nth-child(even) .timeline-content { text-align: left; }
  .timeline-dot { left: 50%; transform: translateX(-50%); }
}


/* Портфолио и фильтры */
.filter-button {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  color: #4B5563; /* gray-600 */
  background-color: #F3F4F6; /* gray-100 */
  transition: all 0.2s ease;
}
.filter-button:hover {
  background-color: #E5E7EB; /* gray-200 */
}
.filter-button.active {
  background-color: #3B82F6;
  color: white;
}

.portfolio-grid {
  position: relative;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Анимация для фильтрации */
.portfolio-item-move,
.portfolio-item-enter-active,
.portfolio-item-leave-active {
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}
.portfolio-item-enter-from,
.portfolio-item-leave-to {
  opacity: 0;
  transform: scale(0.5);
}
.portfolio-item-leave-active {
  position: absolute;
}


/* Отзывы */
.fade-enter-active, .fade-leave-active { transition: opacity 0.5s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }


/* Модальные окна */
.info-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
}
.info-modal-content {
  background-color: white;
  color: #374151;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px;
  position: relative;
}
.modal-close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.modal-close-button:hover {
  color: #111827;
}