* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212;
  color: #e0e0e0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  box-sizing: border-box;
}

.header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url("./assets/hem-poudyal-m7ZiszOdxQk-unsplash.jpg") center/cover;
  color: #fff;
  text-align: center;
  padding: 200px 20px; /* Increased height */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Navigation Bar */
.navbar {
  position: absolute;
  top: 20px;
  right: 40px;
  background: transparent; /* No background for a clean look */
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  display: inline;
}

.navbar ul li a {
  position: relative;
  color: #82b1ff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: color 0.3s ease-in-out;
}

/* Add an invisible underline initially */
.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #82b1ff;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* Expand the underline on hover */
.navbar ul li a:hover::after {
  width: 100%;
  left: 0;
}

/* Change text color on hover */
.navbar ul li a:hover {
  color: #ffffff;
}


/* Hero Content */
.header h1 {
  font-size: 4rem; /* Bigger for hero effect */
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 150px 20px; /* Adjust height for smaller screens */
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .header p {
    font-size: 1rem;
  }

  .navbar {
    position: static;
    text-align: center;
    margin-top: 20px;
  }

  .navbar ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}


.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(21, 0, 255, 0.444);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
}

.feature-card h3 {
  margin: 20px 0;
  color: #82b1ff;
}

.destination-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.gallery-item {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  color: white;
}

.travel-form {
  background: #1e1e1e;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(21, 0, 255, 0.444);
  margin-bottom: 50px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #bbb;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #555;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
}

.interest-button {
  background: #222;
  border: 2px solid #82b1ff;
  color: #82b1ff;
  padding: 15px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  margin: 5px 0;
}

.interest-button:hover {
  background: #333;
}

.interest-button.active {
  background: #82b1ff;
  color: #121212;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.testimonial-card {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(21, 0, 255, 0.444);
}

.testimonial-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 15px;
}

button[type="submit"] {
  background-color: #82b1ff;
  color: #121212;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #4f8cff;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #82b1ff;
  margin-bottom: 10px;
}

.section-title p {
  color: #bbb;
  font-size: 1.1rem;
}

/* Weather Section Styles */
.weather-section {
  margin: 40px 0;
}

.weather-card {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(21, 0, 255, 0.444);
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 20px;
  display: none;
}

.weather-card.visible {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.weather-card h3 {
  color: #82b1ff;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.weather-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.weather-detail {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.weather-detail span {
  color: #82b1ff;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

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

.loading-message {
  position: fixed; /* Make it float on the page */
  top: 50%;
  left: 50%;
  width: 30%; /* Set a fixed width */
  height: 50%; /* Set a fixed height */
  background: rgb(17, 14, 14); /* Semi-transparent background */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #fff;
  z-index: 1000; /* Ensure it appears on top of everything */
  border: 2px solid #82b1ff;
  border-radius: 10px;
  transform: translate(-50%, -50%); /* Center it properly */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
  text-align: center;
  padding: 20px;
}


.loading-message p {
  margin-top: 10px;
  margin-bottom: 30px;
  font-weight: bold;
}

.travel-plan-container {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(21, 0, 255, 0.444);
  margin-top: 20px;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  max-width: 100%;
  min-width: 300px; /* Prevent it from collapsing */
  box-sizing: border-box;
  overflow-wrap: break-word; /* Prevent long text from breaking layout */
}

.travel-plan-container.visible {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .features,
  .testimonials {
      grid-template-columns: repeat(2, 1fr);
  }

  .destination-gallery {
      grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
      grid-template-columns: 1fr;
  }

  .weather-info {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header h1 {
      font-size: 2rem;
  }

  .features,
  .testimonials {
      grid-template-columns: 1fr;
  }

  .destination-gallery {
      grid-template-columns: 1fr;
  }

  .container {
      padding: 10px;
  }

  .travel-form {
      padding: 20px;
  }
}

.footer {
  background: #1e1e1e;
  color: #bbb;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer .social-icons {
  margin-top: 10px;
}

.footer .social-icons a {
  color: #82b1ff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.footer .social-icons a:hover {
  color: #ffffff;
}

.destination-image-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
  gap: 20px;
  margin: 30px auto;
  max-width: 1000px;
}

.destination-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(21, 0, 255, 0.444);
  transition: transform 0.3s ease-in-out;

}

.destination-img:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Prevent background scrolling when loading is active */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}




