/* ============================
   1. ОБЩИЕ СТИЛИ
============================ */
html {
  scroll-behavior: smooth;
  }
body {
  margin: 0;
  max-width: 1200px;
  font-family: "Noto Sans", Arial, sans-serif;
  background-color: #fff;
  color: #060606;
  }

/* ============================
   2. ХЕДЕР (Hero Section)
============================ */
#hero {
  background-image: url('catamaran/bay.jpg');
  background-size: cover;
  background-position: center;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.navbar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
}
.nav-email {
  font-size: 16px;
  font-weight: 400;
  padding: 0 10px;
  white-space: nowrap;
  color: white;
}
.panama1 {
  font-family: "Marck Script", Arial, sans-serif;
  font-size: clamp(18px, 18vw, 90px);
  font-weight: 600;
  margin: 0;
  padding: 0 10px 0 10px;
  max-width: 100%;
  color: white;
  }
.panama2 {
  font-family: "Marck Script", Arial, sans-serif;
  font-size: clamp(16px, 16vw, 40px);
  font-weight: 600;
  margin: 0;
  padding: 15px 0;
  color: white;
  }
a {
  text-decoration: none;
  color: inherit;
}

/* =============================================================
   3. СЕКЦИИ
============================================================= */
.welcome-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap; 
  flex: 1 1 auto;
}
.welcome {
  display: flex;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
  align-self: center;
  flex: 1 1 auto;
  gap: 20px;
  padding: 20px 20px;
  }

.catamaran {
  position: relative;
  width: 60px;
  opacity: 0; /* изначально скрыт */
}

/* Анимация */
.sailing {
  animation: sailing 14s linear forwards;
  opacity: 1;
}

@keyframes sailing {
  0% {
  transform: translateX(-100%);
  opacity: 0;
  }
  8% {
  opacity: 1;
  }
  95% {
  opacity: 1;
  }
  100% {
  transform: translateX(calc(100vw - 100px));
  opacity: 0;
  }
}

.trip {
background: linear-gradient(white, #fff7ec)
}

.trip-section {
  padding: 10px 20px;
  color: #000;
}

.trip-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.trip-image {
  flex: 1 1 400px;
  margin: 10px
}

.trip-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.trip-text {
  flex: 1 1 400px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.trip-text p {
  margin: 10px
}

.blue-title {
  font-family: "Playfair Display", Arial, sans-serif;
  color: rgba(13, 100, 172, 0.899);
  margin: 0px
 }

.wave-container {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 1.2em;
  font-family: "Playfair Display", Arial, sans-serif;
}
.wave-text {
  margin: 0px;
}
.wave-text span {
  display: inline-block;
  font-family: "Playfair Display", Arial, sans-serif;
  color: rgba(13, 100, 172, 0.899);
  animation: wave 3s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
  animation-delay: 0s;
}
.wave-text span:nth-child(2) {
  animation-delay: 0.2s;
}
.wave-text span:nth-child(3) {
  animation-delay: 0.4s;
}
.wave-text span:nth-child(4) {
  animation-delay: 0.6s;
}
.wave-text span:nth-child(5) {
  animation-delay: 0.8s;
}
.wave-text span:nth-child(6) {
  animation-delay: 1.0s;
}


@keyframes wave {
  0%, 100% {
  transform: translateY(0);
  }
  50% {
  transform: translateY(-20px);
  }
}

.carousel {
  width: 100%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: auto;
  height: 300px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  margin: 0 8px;
  flex-shrink: 0;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 2;
  transition: background 0.3s;
}

.carousel-button:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.video-las-perlas video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ============================
   4. FOOTER 
============================ */
footer {
  background-color: #b9c8d5;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding: 0 1.2rem;
}

/* ============================
   5. АДАПТИВНОСТЬ
============================ */
@media (max-width: 1024px) {
  .sailing {
    animation-duration: 9s; 
  }
}
@media (max-width: 768px) {
  .sailing {
    animation-duration: 7s; 
  }
}
@media (max-width: 480px) {
  .my-element {
    animation-duration: 4s; 
  }
}

@media (max-width: 768px) {
  .trip-section {
  padding: 15px 15px;
  }
  .trip-container {
    flex-direction: column;
    gap: 20px;
  }
  .trip-image {
    flex: 1 1 auto;
    margin-inline-start: 10px;;
  }

  .trip-image img  {
    max-width: 100%;
  }
  .trip-text {
    text-align: left;
    font-size: 15px;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  /* Заменяем фото на вертикальные версии */
  .las-perlas-img {
    content: url("catamaran/0-las-perlas-mobile.jpg");
  }

  .san-blas-img {
    content: url("catamaran/1-san-blas-mobile.jpg");
  }
  .taboga-img {
    content: url("catamaran/2-taboga-mobile.jpg");
  }
}

@media (min-width: 760px) and (max-width: 1030px) {
  .trip-container {
  gap: 20px;
  }
  .trip-section {
  padding: 10px 10px;
  }
}

@media (max-width: 1024px) {
  .carousel img {
  height: 220px;
  }
}

@media (max-width: 768px) {
  .carousel img {
  height: 160px;
  }
}

@media (max-width: 480px) {
  .carousel img {
  height: 120px;
  }
}