@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;800&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 16px;
  background: linear-gradient(to bottom, #eef2f3, #8e9eab);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrapper {
  background: linear-gradient(
    180deg,
    rgb(88, 116, 231) 40%,
    rgb(255, 255, 255) 100%
  );
  width: 100%;
}

@keyframes gradientFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#logo-btn {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;

  /* Статичний градієнт біло-синій */
  background: linear-gradient(90deg, #ffffff, #87cefa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#logo-btn:hover {
  transform: scale(1.1) rotate(-2deg);
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

/* ================= Header ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #333; /* зробив як футер */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

header,
.banner,
.how-we-work,
.our-location {
  transform: translateZ(0);
  will-change: transform;
}

/* Навігація */
header nav ul {
  list-style: none;
  display: flex;
  gap: 100px;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

header nav ul li {
  display: flex;
  align-items: center;
  height: 100%;
}

header nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: white; /* текст у меню білий */
}

header nav ul li:not(.btn) a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 4px;
  width: 0;
  background: white; /* біле підкреслення */
  border-radius: 3px;
  transition: width 0.3s ease;
}

header nav ul li:not(.btn) a.active::after,
header nav ul li:not(.btn) a:hover::after {
  width: 100%;
}

header nav ul li.btn a {
  background: #595959;
  border-radius: 10px;
  color: black;
  padding: 0 20px;
  height: 40px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header nav ul li.btn a:hover {
  background: #c4c4c4;
  transform: scale(1.1); /* збільшення при наведенні */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* світла тінь */
}

/* ================= Banner ================= */
.banner-image img {
  width: 100%;
  height: auto;
  margin-top: 100px;
}

/* ================= Section Titles ================= */
.section-title {
  position: relative;
  text-align: center;
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Підкреслення спочатку сховане */
.section-title::after {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background-color: white;
  border-radius: 5px;
  margin: 10px auto 60px auto;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-block:hover .section-title::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ================= Slide  rs Section Text ================= */
.sliders-row .slider-info,
.sliders-row .slider-info p,
.sliders-row .slider-info h3,
.sliders-row .slider-info .price {
  color: #000; /* робимо текст чорним */
}

.our-vehicle-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 16px; /* якщо хочеш округлити краї */
}

.our-vehicle-bg .content-block {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4); /* трохи прозорий блок всередині */
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  color: white;
  backdrop-filter: blur(5px);
}

/* ================= Our Location Section ================= */
.ourLocation {
  width: 100%;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  background: transparent;
}

.ourLocation .content-block {
  max-width: 1300px;
  width: 100%;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

/* Вертикальне розташування: карта зверху, текст під картою */
.ourLocation .location-wrapper {
  display: flex;
  flex-direction: column; /* вертикальний порядок */
  align-items: center; /* горизонтальне центрування */
  text-align: center; /* текст по центру */
  gap: 20px; /* відстань між картою і текстом */
}

/* Стилизуємо карту */
.ourLocation .location-map {
  width: 100%;
  max-width: 600px;
  height: 350px;
  border-radius: 12px;
  margin: 0 auto;
}

/* Стилизуємо текст під картою */
.ourLocation .location-text {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.location-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.location-map {
  flex: 1 1 50%;
  min-width: 300px;
}

/* Для карти */
.ourLocation iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
  margin-top: 20px;
}

/* ================= Sliders ================= */
/* ================= Sliders ================= */
.sliders-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 60px auto;
  padding: 20px;
  max-width: 1200px;
}

.slider {
  flex: 1 1 300px;
  max-width: 400px;
  min-width: 250px;
  position: relative;
  text-align: center;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slider__block {
  width: 100%;
  overflow: hidden;
}

.slider__line {
  display: flex;
  position: relative;
  left: 0;
  transition: transform ease 1s;
}

.slider__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slider__controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.slider__button {
  position: static; /* прибираємо absolute */
  transform: none;
  font-size: 18px;
  margin-bottom: 10px;
  padding: 10px 40px;
  border-radius: 8px;
  border: none;
  background-color: #595959;
  color: white;
  cursor: pointer;
  transition: 0.3s ease, transform 0.3s ease;
}

.slider__button:hover {
  background-color: #444;
  transform: scale(1.2);
}

.button-prev {
  left: 10px;
}

.button-next {
  right: 10px;
}

.slider-info {
  background-color: #fff;
  padding: 15px 20px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.slider-info .price {
  margin-top: 8px;
  font-weight: 700;
  color: #5874e7;
}

/* ================= Content Blocks ================= */
.content-block {
  max-width: 1300px;
  margin: 50px auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  line-height: 1.6;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.content-block h2,
.content-block h3 {
  color: white;
  margin-bottom: 20px;
}

.content-block p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* ================= How We Work Section ================= */
.how-we-work {
  padding: 60px 20px;
  color: white;
  text-align: center;
  position: relative;
}

.how-we-work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.how-we-work .section-title {
  position: relative;
  color: white;
  z-index: 1;
}

/* Контейнер work-items */
.work-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

/* Кожен елемент */
.work-item {
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #000;
  text-align: center;

  /* спочатку невидимі */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Видимі при скролі */
.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Послідовна анімація через nth-child */
.work-items .work-item:nth-child(1).visible {
  transition-delay: 0s;
}
.work-items .work-item:nth-child(2).visible {
  transition-delay: 0.1s;
}
.work-items .work-item:nth-child(3).visible {
  transition-delay: 0.2s;
}
.work-items .work-item:nth-child(4).visible {
  transition-delay: 0.3s;
}
.work-items .work-item:nth-child(5).visible {
  transition-delay: 0.4s;
}

.work-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.work-item p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* ================= Анімація появи при скролі (універсальна) ================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Burger Menu ================= */
.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  background-color: white;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

.menu-button.active .menu-icon {
  background-color: transparent;
}

.menu-button.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-button.active .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ================= Footer ================= */
.site-footer {
  background-color: #333;
  color: white;
  padding-top: 30px;
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-container h3,
.footer-container h4 {
  margin-bottom: 10px;
  color: #5874e7;
}

.footer-about {
  flex: 1 1 300px;
}

.footer-contacts {
  flex: 1 1 200px;
}

.footer-social {
  flex: 1 1 150px;
}

.footer-social a {
  display: block;
  color: white;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #5874e7;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  padding: 10px 0;
  font-size: 14px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.footer-bottom .designer {
  font-size: 0.9rem;
  color: white;
  opacity: 0.4;
}

.footer-bottom .designer a:hover {
  text-decoration: underline;
}

.language-buttons {
  display: flex;
  gap: 10px;
}

.lang-btn {
  cursor: pointer;
  color: white; /* чорний текст завжди */
  -webkit-text-fill-color: white; /* для WebKit-браузерів */
  font-weight: 500;
  transition: all 0.3s ease; /* плавна зміна розміру та кольору */
}

.lang-btn:hover {
  -webkit-text-fill-color: transparent; /* робимо текст прозорим для градієнта */
  background: linear-gradient(90deg, #f0f0f0, grey, #000, grey, #f0f0f0);
  background-clip: text;
  background-size: 200% 100%; /* щоб градієнт міг рухатися */
  animation: gradientFlow 2s linear infinite; /* анімація градієнта */
  transform: scale(1.3); /* збільшення при наведенні */
}

@keyframes gradientFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 768px) {
  /* Ховаємо стандартне меню */
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  #main-nav.active {
    display: flex;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 25px;
    padding: 0;
  }

  #main-nav a {
    color: white;
    font-size: 22px;
    font-weight: 500;
  }

  #main-nav a:hover {
    color: #4da3ff;
  }

  /* Показуємо бургер */
  .menu-button {
    display: block;
    z-index: 10000;
  }

  /* Анімація хрестика */
  .menu-button.active .menu-icon {
    background: transparent;
  }

  .menu-button.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-button.active .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* --- Вимикаємо анімацію логотипа на мобільних --- */
  #logo-btn,
  #logo-btn:hover,
  #logo-btn:active {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2) !important; /* повертає звичайну тінь */
  }
}
