/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fbfd;
  color: #333;
  line-height: 1.6;
}

/* Announcement Banner */
.banner {
  background: #1a04e6;
  color: black;
  text-align: center;
  padding: 10px;
  font-weight: 600;
}

/* Import Google Font for Hero Section */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

.hero {
  position: relative;
  width: 100%;
  min-height: 50vh; /* instead of 100vh */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  animation: slideshow 10s infinite alternate;
  overflow: hidden;
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* transparent black */
  z-index: 1;
}

/* Make text appear above overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

@keyframes slideshow {
  0% {
    background-image: url('images/team3.jpeg');
  }
  33% {
    background-image: url('images/mombasa.jpeg');
  }
  66% {
    background-image: url('images/hike2.jpeg');
  }
  100% {
    background-image: url('images/nlogo.jpeg');
  }
}


/* Overlay to darken background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Darken the background */
  z-index: -1;
}

/* Hero Text Styling */
.hero-text {
  max-width: 800px; /* Limit text width */
  z-index: 1; /* Ensure text stays above the overlay */
}

.hero-text h1 {
  font-size: 4rem; /* Adjusted for prominence */
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Enhanced text shadow */
}

.hero-text p {
  font-size: 1.6rem;
  margin-top: 10px;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
}

/* CTA Button Styling */
.cta-button {
  background-color:rgb(46, 105, 76);
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px; /* Fully rounded button */
  box-shadow: 0 8px 15px rgba(255, 152, 0, 0.4); /* Soft shadow for 3D effect */
  transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
  background-color:rgb(11, 15, 250);
  transform: scale(1.05); /* Slight scale-up effect on hover */
}

/* Mobile Responsive Styling */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .hero-text p {
    font-size: 1.4rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 12px 28px;
  }
}


/* Navbar */
.navbar {
  background-color: #0078D7;
  display: flex;
  justify-content: center;
  padding: 3px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar a {
  color: white;
  margin: 0 5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ff9800;
}

/* Content Section */
main {
  padding: 30px 20px;
}

.content-section {
  background: white;
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
  margin-bottom: 20px;
  color: #0078D7;
}

/* Unified card grid system */
.card-container, 
.destination-gallery, 
.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Force consistent card behavior */
.card, 
.destination-card, 
.vehicle-card {
  background: #eef5fb;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  break-inside: avoid; /* Prevent card splitting */
}

/* Equal height for all cards */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover,
.destination-card:hover,
.vehicle-card:hover {
  transform: translateY(-5px);
}

/* Consistent image styling for ALL cards */
.card img,
.destination-card img,
.vehicle-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Fix for image sliders (if needed) */
.vehicle-card .image-slider,
.destination-card .image-slider {
  height: 180px; /* Match other card images */
  overflow: hidden; /* Prevent scrollbar if not needed */
}
/* Note */
.note {
  font-style: italic;
  color: #555;
}
/* Footer Styling */
.footer {
  background-color: #333;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 15px;
}

.footer-section h3 {
  color: #ff9800;
  margin-bottom: 10px;
}

.footer-section p,
.footer-section a {
  font-size: 16px;
  color: white;
}

.footer-section a {
  text-decoration: none;
}

.footer-section a:hover {
  color: #ff9800;
}

.social-icons a {
  margin: 0 10px;
  font-size: 24px;
  color: white;
}

.social-icons a:hover {
  color: #ff9800;
}

.footer p {
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

.image-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
}

.image-slider img {
  width: 100%;
  height: 200px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.vehicle-card .image-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  width: 100%;
  height: 180px; /* Fix the height */
}

.vehicle-card .image-slider img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Hide scrollbar for better look */
.vehicle-card .image-slider::-webkit-scrollbar {
  display: none;
}

/* Custom Scrollbar for Image Slider */
.image-slider {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 #eee; /* Firefox */
}

/* Chrome, Safari and Edge */
.image-slider::-webkit-scrollbar {
  height: 8px;
}

.image-slider::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}

.image-slider::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.image-slider::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* About Us Section */
#about {
  background: url('images/noah6.jpeg') center/cover no-repeat;
  padding: 60px 20px;
  color: white;
  text-align: center;
  background-attachment: fixed;
}

#about .about-container {
  max-width: 900px;
  margin: auto;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 15px;
}

#about h2 {
  color: #070707;
  margin-bottom: 20px;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.team-member {
  text-align: center;
  max-width: 150px;
}

.team-member img {
  width: 100%;
  border-radius: 50%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.team-member h4 {
  color: #333;
}

.mission-stats {
  margin-top: 40px;
  text-align: left;
}

.mission-stats h3 {
  color: #0078D7;
}

.mission-stats ul {
  list-style-type: none;
  margin-top: 10px;
  font-size: 1rem;
}

.mission-stats li {
  padding: 5px 0;
  color: #333;
}

/* FAQ Section */
#faq {
  background: radial-gradient(rgba(255, 255, 255, 0.2) 0.8px, transparent 0.8px) center center / 20px 20px repeat, 
    url('images/matis.jpeg') center/cover no-repeat;
  padding: 60px 20px;
  color: white;
  text-align: center;
  background-attachment: fixed;
  border-radius: 12px;
}

.faq-container {
  max-width: 900px;
  margin: auto;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 15px;
}

.faq-question {
  font-size: 1.1rem;
  cursor: pointer;
  background: rgba(33, 243, 6, 0.2);
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
}
/* Combine duplicate media queries */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text p { font-size: 1.2rem; }
  .cta-button { padding: 12px 28px; }
  
  /* Add mobile-specific card styling */
  .card { margin-bottom: 15px; }
}
.cta-button {
  background: linear-gradient(135deg, #2f2e69 0%, #0b0ffa 100%);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(11, 15, 250, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(11, 15, 250, 0.6);
}
/* Ensure proper contrast */
body {
  color: #333; /* Dark gray for better readability */
}

a:focus, button:focus {
  outline: 2px solid #0078D7;
  outline-offset: 3px;
  transition: outline-offset 0.3s ease;
}


/* ARIA improvements */
[aria-expanded="true"]::after {
  content: " (expanded)";
}
html {
  scroll-behavior: smooth;
}
.booking-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 50px auto;
  max-width: 600px;
  text-align: center;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 5px;
}

.btn-submit {
  background-color:rgb(29, 233, 2);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color:rgb(15, 233, 8);
}
#book-now {
  background: linear-gradient(135deg,rgb(162, 162, 212),rgb(73, 72, 163)); /* Soft classic gradient */
  padding: 60px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-top: 50px;
}

.booking-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: auto;
}

/* Mobile Full Width Fix */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 80px 20px;
    background-size: cover;
  }

  .hero-text {
    max-width: 100%;
  }

  .content-section,
  .card-container,
  .destination-gallery,
  .vehicle-gallery {
    padding: 10px;
    grid-template-columns: 1fr;
  }

  .card img,
  .destination-card img,
  .vehicle-card img {
    height: auto;
    max-width: 100%;
    object-fit: cover;
  }

  main {
    padding: 10px;
  }

  .booking-section, #book-now {
    padding: 20px 10px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

/* Ensure hero-text titles are fully visible */
.hero-text h1, 
.hero-text p {
  word-break: break-word;
}

/* Force slider images full width on mobile */
.vehicle-card .image-slider img,
.destination-card .image-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
}

.whatsapp-chat {
  position: fixed;
  bottom: 10px;
  right: 6px;
  display: flex;
  align-items: fill;
  background-color: #25D366; /* WhatsApp green */
  padding: 10px 10px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.whatsapp-chat:hover {
  background-color: #1ebe5d;
}

.whatsapp-chat img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.whatsapp-chat span {
  color: white;
  font-weight: bold;
  font-size: 10px;
}

.popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #007BFF;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none;
  z-index: 1000;
  animation: slideIn 0.5s forwards;
}

.popup a {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
}

#close-popup {
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.footer {
  background-color: #002244;
  color: #ffffff;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-content h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #ffcc00; /* Highlight titles */
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content ul li {
  margin-bottom: 8px;
}

.footer-content ul li a {
  color: #ffffff;
  text-decoration: none;
}

.footer-content ul li a:hover {
  text-decoration: underline;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 10px;
}

body {
  background: linear-gradient(-45deg, #6f79a8, #65a563, #996696, #8a8757);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  font-family: 'Poppins', sans-serif; /* or whatever you use */
  margin: 0;
  padding: 0;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* --- Noah Smart Assistant Styles --- */
.assistant-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.assistant-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

#assistant-container {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 350px;
  height: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s ease;
}

.assistant-hidden {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

.assistant-header {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#assistant-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

#assistant-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-message {
  background-color: #fff;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  max-width: 85%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.assistant-option-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.assistant-option-btn:hover {
  background-color: #45a049;
}

.assistant-controls {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background: white;
}

#assistant-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 15px;
  margin: 0 10px;
}

.voice-btn, .send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #25D366;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.voice-btn:hover, .send-btn:hover {
  background: #128C7E;
}
