@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #28a745;
  --secondary-color: #218838;
  --background-color: white;
  --text-color: black;
  --hover-bg-color: #f0f0f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow-x: hidden;
  background-color: var(--background-color);
}

main {
  padding-top: 15px;
  overflow: hidden;
}

/* Navigation Styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background-color);
  box-shadow: 3px 3px 5px var(--shadow-color);
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav li {
  height: 50px;
}

nav a {
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: var(--hover-bg-color);
}

nav li:first-child {
  margin-right: auto;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(7px);
  box-shadow: -10px 0 10px var(--shadow-color);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  z-index: 1000;
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
}

.menu-button {
  display: none;
}

/* Responsive Navigation */
@media (max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

@media (max-width: 320px) {
  .sidebar {
    width: 100%;
  }
}

/* Landing Page */
#landing-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#landing-page h1,
#landing-page p {
  position: absolute;
  text-align: center;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 10;
}

/* Gradient Animation */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

/* Landing Page Responsive */
@media (min-width: 801px) {
  #landing-page h1 {
    top: 75%;
    font-size: 3rem;
  }
  #landing-page .adventure-button {
    top: 45%;
    font-size: 1rem;
    padding: 4px;
    background-image: conic-gradient(from var(--angle, 0deg),
      #2c2c2c 0%, #555555 25%, #444444 50%, #1a1a1a 75%, #2c2c2c 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: 7s spin linear infinite;
  }
  #landing-page .adventure-button:hover {
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 800px) {
  #landing-page h1 {
    top: 70%;
    font-size: 1.2rem;
  }
  #landing-page .adventure-button {
    top: 50%;
    font-size: 0.8rem;
    padding: 0;
    background-image: conic-gradient(from var(--angle, 0deg),
      #2c2c2c 0%, #555555 25%, #444444 50%, #1a1a1a 75%, #2c2c2c 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: 7s spin linear infinite;
  }
  #landing-page .adventure-button:hover {
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Headings and Paragraphs */
@media (min-width: 801px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1rem; }
  p { font-size: 1rem; }
}

@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }
  p { font-size: 0.875rem; }
}

/* Adventure Button */
.adventure-button {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  z-index: 10;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.adventure-button:hover {
  background-color: var(--secondary-color);
}

/* Language Selector */
#language-selector {
  border: 2px solid transparent;
  border-radius: 5px;
  background-color: transparent;
  padding: 3px;
  color: white;
  appearance: none;
  outline: none;
  text-align: center;
}

/* ==========================
   TOUR PACKAGES (CENTERED)
   ========================== */
#tour-packages {
  background-color: #f9f9f9;
  padding: 60px 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Centered Packages Container */
.packages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center; /* CENTER the grid items */
  max-width: 1200px;       /* Optional: limit width for very large screens */
  margin: 0 auto;          /* Center the container itself */
  align-items: stretch;     /* Make all grid items equal height */
}

/* Single Package Card */
.package {
  display: flex;
  flex-direction: column;       /* Stack content vertically */
  justify-content: space-between; /* Make content fill height */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.package img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Tour Description */
.tour-package {
  flex: 1;                      /* Expand to fill card height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  margin-top: 10px;
  color: #333;
}

.tour-package p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.tour-package ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .packages-container {
    grid-template-columns: 1fr; /* Stack packages on small screens */
  }
}


/* ==========================
   ITINERARY (MATCHING TOUR PACKAGES)
   ========================== */
#itinerary {
  background-color: #f9f9f9; /* same as tour-packages */
  padding: 60px 5%;
}

#itinerary .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.itinerary-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.itinerary-package {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.itinerary-package:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.itinerary-package img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

.itinerary-details {
  text-align: left;
  margin-top: 10px;
  color: #333;
}

.itinerary-details p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.itinerary-details ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.itinerary-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-image: conic-gradient(
    from var(--angle),
    #1f3c88 0%, 
    #3a7bd5 25%, 
    #4a90e2 50%, 
    #2a52be 75%, 
    #1f3c88 100%
  );
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: rotate-gradient 7s linear infinite;
}

.itinerary-button:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .itinerary-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .itinerary-details {
    text-align: center;
  }
}

@media (max-width: 600px) {
  #itinerary {
    padding: 40px 15px;
  }
  .itinerary-package {
    padding: 15px;
  }
  .itinerary-details p,
  .itinerary-details ul {
    font-size: 0.9rem;
  }
  .itinerary-button {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
  }
}


/* Book Now Button */
.book-now-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-image: conic-gradient(
    from var(--angle),
    #1f3c88 0%, 
    #3a7bd5 25%, 
    #4a90e2 50%, 
    #2a52be 75%, 
    #1f3c88 100%
  );
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: rotate-gradient 7s linear infinite;
}

.book-now-button:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Responsive Layout */
@media (max-width: 992px) {
  .packages-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .tour-package {
    text-align: center;
  }
}

@media (max-width: 600px) {
  #tour-packages {
    padding: 40px 15px;
  }
  .package {
    padding: 15px;
  }
  .tour-package p,
  .tour-package ul {
    font-size: 0.9rem;
  }
  .book-now-button {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
  }
}


/* ==========================
   CHAT BUTTON (unchanged)
   ========================== */

.chat-button {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3a7bd5;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  white-space: nowrap;

  height: 48px;
  width: 48px; /* Perfect circle */
  padding: 0;   /* Remove padding to center icon perfectly */
  transition: width 0.3s ease, background-color 0.3s ease;
}

.chat-button:hover,
.chat-button:focus {
  background-color: #2c66c3;
  width: auto;
  padding: 0 5px;
  outline: none;
}

.chat-button .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
}

.chat-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Hide text initially */
.chat-button .chat-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  margin-left: 0;
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease;
}

/* Show text on hover */
.chat-button:hover .chat-text {
  opacity: 1;
  max-width: 200px;
  margin-left: -5px;
}

.imgcontact {
  transition: transform 0.5s ease;
}

.imgcontact:hover {
  transform: translateY(-10px); /* Moves the image up */
}

@media (hover: none) {
    .imgcontact:hover {
        transform: none; /* Disable hover effect on touch devices */
    }
}

/* Swiper Styles */
.swiper-container {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  padding: 4px;
  color: white;
  font-size: 14px;
  border-radius: 50%;
  user-select: none;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Responsive Swiper Styles */
@media (max-width: 800px) {
  .swiper-container {
    height: 350px;
  }

  .swiper-slide img {
    height: 350px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    top: 85%;
    width: 20px;
    height: 20px;
  }

  .swiper-pagination {
    bottom: 10px;
  }
}

.swiper-container {
  padding: 0;
  box-sizing: border-box;
}

.swiper-wrapper {
  margin: 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 5px;
  flex: 0 0 calc(100% - 10px);
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

@media (min-width: 801px) {
  .swiper-container {
    display: flex;
    justify-content: center;
  }

  .swiper-slide {
    flex: 0 0 calc(25% - 10px);
    margin: 0 5px;
  }
}