.img-thumbnail {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.img-thumbnail:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-outline-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #09a2ff, #007BFF);
  z-index: -1;
  transition: left 0.4s ease;
}

.btn-outline-primary:hover {
  color: #007BFF;
}

.btn-outline-primary:hover::before {
  left: 0;
}

.clean-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(9, 162, 255, 0.2), rgba(0,0,0,0));
  animation: backgroundMove 10s linear infinite;
  z-index: 0;
}

@keyframes backgroundMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.clean-hero {
  position: relative;
  overflow: hidden;
}

.clean-hero .text {
  position: relative;
  z-index: 1;
}

.clean-block h3, .clean-block p {
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.clean-block h3:hover, .clean-block p:hover {
  transform: translateY(-3px);
  /*text-shadow: 1px 1px 5px rgba(0, 123, 255, 0.6);*/
}

.btn-outline-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.btn-outline-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
  background: rgba(0,123,255,0.05);
  border-color: #007bff;
}

.btn-outline-primary {
  color: #007bff;
  border: 2px solid #007bff;
  background-color: rgba(0,0,0,0);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #007bff, #09a2ff);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.btn-outline-primary:hover::before {
  opacity: 0.15;
}

.btn-outline-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.img-wrapper-uniform {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  padding: 0.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-wrapper-uniform:hover {
  transform: translateX(5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.img-wrapper-uniform img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lang-text {
  position: absolute;
  white-space: nowrap;
  font-family: monospace;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lang-text.lang-visible {
  opacity: 1;
  visibility: visible;
}

.content-wrapper-uniform {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  margin: auto;
  /*width: 500px;*/
  min-height: 375px;
}

.content-wrapper-uniform:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

/* Чтобы заголовки и кнопки внутри смотрелись аккуратно */

.content-wrapper-uniform h3 {
  margin-bottom: 1rem;
}

.content-wrapper-uniform p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--bs-body-color);
}

/* Кнопки можно чуть приподнять при наведении */

.content-wrapper-uniform .btn {
  margin-top: 1rem;
  align-self: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wrapper-uniform .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(58, 123, 213, 0.4);
}

/* Скрытое состояние */

.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Открытое состояние — именно .dropdown-menu получает show */

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}

/* Если хотите воспроизводить анимацию каждый раз при открытии */

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Альтернативно, вместо transition можно использовать animation */

.dropdown-menu.show {
  animation: slideDownFade 0.3s forwards;
}

/* Плавная смена цвета фона и текста для всего документа */

html, body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Плавная смена рамок и теней для основных блоков */

.navbar, .card, .img-wrapper-uniform, .content-wrapper-uniform, .btn-outline-primary, .btn-primary, .clean-block h3, .clean-block p, .dropdown-menu {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

/* Если у тебя есть ещё кастомные контейнеры по теме — добавь их тоже сюда */

