/* CSS переменные */
:root {
  --base-black-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  /* display: flex;
    flex-direction: column;
    align-items: center; */
}

.container-agent {
  background: url("images/bg-agent.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

.logo {
  height: 40%;
  padding: 15px 30px;
  font-size: 24px;
  color: #2718a9;
}

main {
  width: 100%;
}

#back-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px 20px;
}

#back-button-container button {
  padding: 0 24px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: none;
}

#back-button-container button:hover {
  background-color: #0056b3;
}

.agent-wrapper {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background-color: #e7e8ed;
  background: url("images/bg-agent.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#agent-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  gap: 15px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    #bcbade 100%
  );
  width: 100%;
  max-width: 1600px;
  overflow: hidden;
}

#agent-detail h2 {
  color: var(--base-black-color);
  font-size: clamp(2rem, 8vw, 4.8rem);
  font-family: "NeueMachina-800", Arial, sans-serif;
  text-align: center;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

#agent-detail > p {
  font-family: "Formular-300", Arial, sans-serif;
  font-size: clamp(1rem, 8vw, 1.9rem);
  color: var(--base-black-color);
  text-align: center;
  max-width: 65rem;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.workflow-desc {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 1rem;
  color: #333;
  font-size: clamp(1.2rem, 4vw, 2rem);
}

.workflows-list {
  width: 100%;
  max-width: 65rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-item {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #007bff;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  font-family: "Formular-300", Arial, sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  color: var(--base-black-color);
  text-align: center;
  backdrop-filter: blur(5px);
}

#back-btn {
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: linear-gradient(
    0deg,
    rgba(16, 1, 141, 0.15) 0%,
    rgba(39, 24, 169, 0.2) 100%
  );
  box-shadow: 0px 0px 11.5px 0px rgba(255, 255, 255, 0.05);
  padding: 20px;
  color: #fff;
  font-family: "NeueMachina-300", Arial, sans-serif;
  font-size: clamp(1.5rem, 2vw, 3rem);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 200px;
}

#back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.15);
}

.apps-scroll-wrapper {
  width: 100%;
  overflow: hidden;
}

.apps-container {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  animation: scroll 20s linear infinite;
  width: auto;
  padding-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-120px * 12 - 15px * 12));
  }
}

.apps-container::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.app-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100px;
  padding: 10px;
  border-radius: 50%;
  border: 0.4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0px 1.516px 1.516px 0px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.app-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.4);
}

.app-circle img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  filter: brightness(0.8);
}

/* RESPONSIVE RESPONSIVE RESPONSIVE */
/* Мобильные устройства (маленькие) */
@media (min-width: 240px) and (max-width: 480px) {
  #agent-detail {
    padding: 10px !important;
    gap: 20px;
  }

  #back-btn {
    padding: 10px !important;
    min-width: 150px;
  }

  .agent-wrapper {
    padding: 10px 20px;
  }

  .apps-container {
    gap: 10px;
  }

  .app-circle {
    height: 70px;
    width: 70px;
    padding: 7px;
  }

  .app-circle img {
    height: 35px;
    width: 35px;
  }

  .workflow-item {
    padding: 15px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-80px * 12 - 10px * 12));
    }
  }
}

@media (max-width: 480px) {
  #agent-detail {
    padding: 15px 30px !important;
    gap: 25px;
  }

  #back-btn {
    padding: 20px !important;
  }

  .agent-wrapper {
    padding: 15px 25px;
  }

  .apps-container {
    gap: 12px;
  }

  .app-circle {
    height: 80px;
    width: 80px;
    padding: 8px;
  }

  .app-circle img {
    height: 40px;
    width: 40px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-90px * 12 - 12px * 12));
    }
  }
}

/* Мобильные устройства (обычные) */
@media (max-width: 768px) {
  .agent-wrapper {
    padding: 20px 30px;
  }

  .apps-container {
    gap: 13px;
  }

  .app-circle {
    height: 90px;
    width: 90px;
    padding: 8px;
  }

  .app-circle img {
    height: 45px;
    width: 45px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-100px * 12 - 13px * 12));
    }
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .agent-wrapper {
    padding: 20px 35px;
  }

  .apps-container {
    gap: 14px;
  }

  .app-circle {
    height: 100px;
    width: 100px;
    padding: 9px;
  }

  .app-circle img {
    height: 50px;
    width: 50px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-110px * 12 - 14px * 12));
    }
  }
}

/* Малые десктопы */
@media (max-width: 1280px) {
  .agent-wrapper {
    padding: 20px 40px;
  }
}

/* Стандартные и большие десктопы */
@media (max-width: 1536px) {
  /* Стили уже заданы в основных правилах */
}

/* Очень большие экраны (2K и выше) */
@media (min-width: 1536px) {
  .agent-wrapper {
    padding: 25px 50px;
  }

  .apps-container {
    gap: 18px;
  }

  .app-circle {
    height: 110px;
    width: 110px;
    padding: 10px;
  }

  .app-circle img {
    height: 55px;
    width: 55px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-140px * 12 - 18px * 12));
    }
  }
}
