/* базовые настройки страницы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: black;
  text-transform: uppercase;
  color: white;
  overflow-y: scroll; 
}

body::-webkit-scrollbar {
  display: none;
}

::selection {
  background-color: #ffffff; 
  color: #000000; 
}
/* базовые настройки страницы */



/*preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease; /* Плавное исчезновение */
}

.preloader-text {
  font-family: 'Arial', sans-serif;
  font-size: 4vw;
  color: #000000; /* Цвет текста */
  opacity: 0; /* Сначала текст невидим */
  transition: opacity 1.5s ease; /* Плавное появление текста */
}

#preloader.show .preloader-text {
  opacity: 1; /* Текст становится видимым */
}

@media (max-width: 768px) { /* Планшеты и телефоны */
  .preloader-text  {
    font-size: 10vw; /* Увеличение текста для мобильных устройств */
  }
}
/*preloader */







/* container-for-header / навигационная панель и логотип */
.container-for-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.container-for-header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: brightness(0.4);   
}



header {
  display: flex;
  background-color: rgba(255, 255, 255, 0.067);
  justify-content: space-between;
  padding: 30px 200px;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000; 
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul {
  display: flex;
  gap: 40px;
}

nav ul li {
  list-style-type: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: clamp(16px, 1vw, 32px);
  transform: scale(1); /* Начальный масштаб */
  display: inline-block; /* Для работы transform */
  transition: transform 0.5s, color 0.5s; /* Плавный переход для масштаба и цвета */
}

.logo a {
  font-size: clamp(35px, 2.5vw, 48px);
  color: white;
  text-decoration: none;
  transform: scale(1); /* Начальный масштаб */
  display: inline-block; /* Для работы transform */
  transition: transform 0.5s, color 0.5s; /* Плавный переход для масштаба и цвета */
}
a:hover {
  color: #afa3bd; /* Лавандовый цвет при наведении */
  transform: scale(1.1); /* Лёгкое увеличение текста */
  display: inline-block;
  transition-duration: 0.5s;
}


/* Состояние для светлого фона */
header.light {
  background-color: rgba(8, 2, 19, 0.88);
  transition: background-color 0.3s ease, color 0.3s ease;
  
}

header.light a {
  color: rgb(255, 255, 255); /* Чёрный текст */
  transition: background-color 0.3s ease, color 0.3s ease;
  transition: transform 0.5s, color 0.5s; /* Плавный переход для масштаба и цвета */
}

header.light a:hover {
  color: #afa3bd; /* Лавандовый цвет при наведении */
  transform: scale(1.1); /* Лёгкое увеличение текста */
  display: inline-block;
  transition-duration: 0.5s;
}
.text {
  height: 600px;
  width: 1000px;
  padding-left: 200px;
  position: absolute;
  top: 50%;
  font-size: 45px;
}

/* медиа 100 проц надо менять и адаптировать */
@media screen and (max-width: 480px) {
  .logo a {
    font-size: 20px;
  }
  nav ul {
    display: flex;
    gap: 15px;
  }
  .text {
    height: 300px;
    width: 400px;
    padding-left: 100px;
    position: absolute;
    top: 30%;
    font-size: 25px;
  }

}


/* container-for-header навигационная панель и логотип */


































/* main / первая страница */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 200px;
   padding-right: 200px;
   color: black;
   background-color: white;
   
}


.container-for-first-page {
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%; /* Установите ширину в 100% */
  align-items: center;
}
  

.text-for-first-page {
  max-width: 600px; /* Гибкая ширина */
  font-size: clamp(18px, 3vw, 45px);
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  user-select: auto;
}
/* Пример для конкретного элемента */
.text-for-first-page ::selection {
  background-color: rgb(38, 33, 48); /* Красный фон */
  color: #ffffff; /* Белый текст */
}
.stats-for-first-page {
  display: flex;
  gap: 40px;
  flex-direction: column;
  justify-content: space-between;    
}
  
.element-of-the-stats p:first-of-type {
  font-size: 125px;
}
  
.text-for-first-page p:nth-of-type(2) {
  font-size: 20px;
}

.blur {
  filter: blur(5px) grayscale(100%);
  transition: filter 0.3s;
}

.text, .center-area {
  transition: filter 0.7s ease;
}

/* Для мобильных устройств (780px) */
@media screen and (max-width: 780px) {
  .element-of-the-stats p:first-of-type{
    font-size: 40px;
  }
  
}

/* main / первая страница */


/* container-for-second-page / вторая страница */

.container-for-second-page {
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: 200px;
  padding-right: 200px;
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12-колоночная сетка */
  /* gap: 20px; */
  /* margin-bottom: 20px; Отступ снизу для контейнера */
  background-color: rgba(8, 2, 19, 0.88);
  height: 100%;
}




.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Обеспечивает заполнение DIV */
  transition: opacity 1s ease; /* Плавный переход */
  opacity: 0; /* Скрываем изображение по умолчанию */
}

.image.visible {
  opacity: 1; /* Показать изображение */
} */

.stageofwork p {
  margin-top: 10px;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  grid-template-rows: repeat(2, 1fr); /* 2 строки */
  gap: 15px; /* Промежутки между блоками */
  width: 80vw; /* Ширина галереи */
  height: 100vh; /* Высота галереи */
}

.gallery-section {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out; /* Плавный переход */
}

@media screen and (max-width: 1200px) {
  .container-for-second-page {
    padding-left: 10px;
  }
  }
/* container-for-second-page / вторая страница */



/* Общий стиль для секции */
.intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  font-family: 'Georgia', serif;
  padding-left: 200px;
  padding-right: 160px;
}
.intro-section ::selection {
  background-color: rgb(38, 33, 48); /* Красный фон */
  color: #ffffff; /* Белый текст */
}
/* Левая часть с текстом */
.intro-content {
  flex: 1;
  
}

/* Эффекты для заголовков и текста */
.intro-title,
.intro-subtitle,
.intro-description,
.image-caption {
  opacity: 1; /* Элементы видимы по умолчанию */
  transition: opacity 0.5s ease; /* Плавный переход */
  font-family: Arial, Helvetica, sans-serif;
}

.intro-title {
  font-size: 50px; /* Увеличение размера заголовка */
}

.intro-subtitle {
  font-size: 80px;
}

.intro-title.hidden,
.intro-subtitle.hidden,
.intro-description.hidden,
.image-caption.hidden {
  opacity: 0; /* Исчезновение */
}

/* Правая часть с изображением */
.intro-image img {
  width: 700px;
  height: 700px;
  object-fit: cover; /* Сохраняем пропорции, изображение заполняет рамку */
  border-radius: 10px; /* Добавляем округление, если нужно */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Тень для красоты */
  transition: opacity 0.5s ease, transform 0.3s ease; /* Плавное появление и эффект наведения */
  opacity: 1;
}

.intro-image img.hidden {
  opacity: 0; /* Исчезновение изображения */
}

/* Эффект увеличения при наведении */
.intro-image img:hover {
  transform: scale(1.05); /* Лёгкое увеличение */
}

.image-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #777777;
  font-style: italic;
}

/* Стили для кнопки */
.change-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #6c63ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  
}

.change-button:hover {
  background-color: #554ab2;
}
/* Для мобильных устройств (780px) */
@media screen and (max-width: 780px) {
  .intro-section {
    padding-left: 30px;
    font-size: 20px;
    max-height: 100vh;
  }

  .intro-image img {
    width: 200px;
    height: 200px; }
    .intro-subtitle  {
      font-size: 40px;
    }
}

/* Контейнер для страницы команды */
.container-for-team-page {
  padding: 50px 200px;
  background-color: rgba(13, 13, 13, 1);
  text-align: center;
}

/* Заголовок и описание */
.header-for-team-page h2 {
  color: white;
  font-size: 45px;
  margin-bottom: 20px;
}

.header-for-team-page p {
  color: rgba(200, 200, 200, 0.8);
  font-size: 20px;
  margin-bottom: 50px;
}

/* Секция с участниками команды */
.team-members {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-member {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.team-member:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-member h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 5px;
}

.team-member p {
  color: rgba(200, 200, 200, 0.8);
  font-size: 16px;
}



.container-for-technologies-page {
  padding: 50px 100px;
  background: linear-gradient(120deg, #333333, #1e1e1e);
  color: #ffffff;
  text-align: center;
}

.title-for-technologies {
  font-size: 36px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f4f4f4;
}

.technology-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.technology-category {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.technology-category:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.category-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.technology-item {
  flex: 0 1 calc(25% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.technology-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
}

.technology-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.technology-item h3 {
  font-size: 14px;
  color: #f4f4f4;
}
/* container-for-technologies-page / Технологии */


/* Contact Section */

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 200px;
  background-color: rgba(13, 13, 13, 1);
  color: white;
  text-align: center;
}

.contact-title {
  font-size: 45px;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.contact-form label {
  font-size: 18px;
  color: #cfcfcf;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: rgba(35, 22, 34, 0.5);
  color: white;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(35, 22, 34, 0.7);
}

.contact-form button {
  background-color: rgba(35, 22, 34, 0.8);
  color: white;
  font-size: 18px;
  padding: 10px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}

.contact-form button:hover {
  background-color: rgba(35, 22, 34, 1);
}




Highlight Effect for Active Stage
.highlight {
  background: rgba(86, 70, 158, 0.95);
  transition: background 1s ease; /* Плавный переход цвета */
}








/* Скрываем карточки перед анимацией */
.stageofwork {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: opacity 0.8s ease-out, transform 1.4s ease-out;
}

/* Анимация появления */
.stageofwork.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Анимация из разных направлений */
[data-animation="from-left"] {
  transform: translateX(-200px); /* Появление слева */
}

[data-animation="from-right"] {
  transform: translateX(200px); /* Появление справа */
}

[data-animation="from-bottom"] {
  transform: translateY(200px); /* Появление снизу */
}



















.footer {
  background-color: #262130;
  color: #fff;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-section h3, .footer-section h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-socials a {
  color: #fff;
  margin-right: 15px;
  font-size: 18px;
}

.footer-socials a:hover {
  color: #aaa;
}

.footer-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 20px;
  text-align: center;
}
