/**
 * Компоненты интерфейса
 * Карточки, кнопки, формы, элементы
 */

/* ===== КАРТОЧКА ПРИВЕТСТВИЯ ===== */
.hero-card {
  position: relative;
  z-index: 10;
  text-align: center;
  flex-direction: column;
  padding: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  width: 100dvw;
}

/* ===== КАРТОЧКИ ПРОЕКТОВ ===== */
.project-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  min-height: 300px;
  background: rgba(16, 41, 48, 0.8);
  border-radius: 10px;
  padding: 15px;
  max-width: 550px;
  transition: transform 0.3s ease;

  &:hover {
    transform: translateX(-10px);
  }

  /* Изображение проекта */
  .project-image {
    width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
  }

  /* Логотип технологии */
  .tech-logo {
    height: 50px;
    aspect-ratio: none;
    width: auto;
  }
}

/* ===== СОДЕРЖИМОЕ КАРТОЧКИ ПРОЕКТА ===== */
.project-content {
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'BellotaText';
  color: #ffffff;
  flex: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #d0c896;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.divider {
  width: 100%;
  height: 3px;
  background-color: #d0c896;
  margin: 10px 0;
}

/* ===== ТЕХНОЛОГИИ ===== */
.tech-item {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.tech-list {
  display: flex;
  gap: 10px;
}

/* ===== ПЛАНЕТА С ТЕКСТОМ ===== */
.planet-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;

  .planet-image {
    width: 50%;
    height: 50%;
    margin: auto;
    object-fit: contain;
    animation: rotateReverse 20s linear infinite;
  }

  .circular-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
    pointer-events: none;

    text {
      font-size: 12px;
      font-weight: bold;
      fill: #d0c896;
      font-family: 'BellotaText';
    }
  }
}

/* ===== АНИМИРОВАННОЕ ИЗОБРАЖЕНИЕ ===== */
.animated-image-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.animated-image {
  position: relative;
  z-index: 2;
  background-image: url('../assets/images/backgrounds/animated-background.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 2880px 660px;
  background-color: transparent;
  width: 1440px;
  height: 660px;
  zoom: 0.8;
  animation: last-frame-animation 0.5s steps(2, end) infinite;
}

/* ===== ЛИНИИ ЗВЕЗД ===== */
.star-line {
  width: 1rem;
  height: 1px;
  margin: 10px;
  background-color: white;

  &--medium {
    width: 1.2rem;
  }

  &--small {
    width: 0.5rem;
  }
}

/* ===== ВЕРТИКАЛЬНЫЕ ЭЛЕМЕНТЫ ===== */
.vertical-element {
  position: absolute;
  top: 20px;
  right: 0px;
}

.flying-element {
  position: absolute;
  width: 100%;
}

/* ===== СЕКЦИЯ ТЕХНОЛОГИЙ ===== */
.technologies-section .section-title {
  position: relative;
  z-index: 3;
  padding: 40px 20px 20px 20px;
}

.technologies-container {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  justify-items: start;
  align-items: center;
  padding: 40px 0;
  max-width: 50%;
}

.technology-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: rgba(16, 41, 48, 0.6);
  border-radius: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.technology-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(16, 41, 48, 0.9);
}

.technology-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(208, 200, 150, 0.3));
}

.technology-name {
  font-family: 'BellotaText';
  color: #d0c896;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

/* ===== ВЕРТИКАЛЬНЫЕ ЛИНИИ ДЛЯ СЕКЦИИ ТЕХНОЛОГИЙ ===== */
.technologies-section .star-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: none;
  pointer-events: none;
  overflow: visible !important;
  z-index: 1;
}

.falling-line {
  position: absolute;
  width: 2px;
  height: 150px;
  filter: blur(0.5px);
  border-radius: 2px;
}

/* ===== КОНТАКТЫ ===== */
.contacts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
  margin-bottom: 20px;
}

.contact-item {
  width: 100%;
  max-width: 400px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  background: rgba(16, 41, 48, 0.8);
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(16, 41, 48, 0.95);
  border-color: #d0c896;
  box-shadow: 0 10px 30px rgba(208, 200, 150, 0.2);
}

.contact-icon {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(208, 200, 150, 0.3));
}

.contact-text {
  font-family: 'BellotaText';
  color: #d0c896;
  font-size: 1.2rem;
  font-weight: bold;
  flex: 1;
  line-height: 1.4;
}
