/* General Styles */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #f0a500;
  transition: all 0.3s ease;
}

a:hover {
  color: #d89000;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Fixes image alignment and spacing issues */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.section-title {
  position: relative;
  text-align: center;
  color: #254653;
  margin-bottom: 30px;
  font-size: 2.5rem;
  padding-bottom: 10px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #f0a500;
}

/* Navigation Styles */
header {
  background: linear-gradient(90deg, #254653, #008080);
  padding: 15px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 60px;
}

nav {
  flex: 1 1 auto;
  text-align: right;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 5px;
  position: relative;
  text-decoration: none;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f0a500;
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 1001;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  margin-top: 80px; /* Adjust based on header height */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Improve text visibility */
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Improve text visibility */
}

.cta-button {
  display: inline-block;
  background-color: #f0a500;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: white;
  color: #f0a500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
  padding: 50px 0;
}

section h2 {
  color: #254653;
  font-size: 2rem;
  margin-bottom: 30px;
}

section p {
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Destinations Section */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.destination-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.destination-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.destination-card .card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.destination-card h3 {
  color: #254653;
  margin-bottom: 10px;
}

/* Tour Cards */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tour-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure consistent heights */
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tour-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-card .card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tour-card h3 {
  color: #254653;
  margin-bottom: 10px;
}

.tour-card p {
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1; /* Push buttons to the bottom */
}

.tour-card .price {
  font-weight: bold;
  color: #f0a500;
  margin-bottom: 10px;
}

.tour-card .card-actions {
  margin-top: auto; /* Push to bottom */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tour-card a,
.tour-card button {
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
  flex-grow: 1;
  margin: 0;
}

.tour-card a {
  background-color: #254653;
  color: white;
}

.tour-card button {
  background-color: #f0a500;
  color: white;
  border: none;
  cursor: pointer;
}

/* Contact Section */
#contact form {
  max-width: 600px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
}

#contact button {
  background-color: #254653;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #f0a500;
}

/* Footer */
footer {
  background-color: #254653;
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  padding: 0 15px;
  margin-bottom: 20px;
  text-align: left; /* Align text left for better readability */
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #f0a500;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ddd;
  padding: 4px 0;
  display: inline-block; /* Better tap target */
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #f0a500;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1010;
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container,
  .header-container,
  .footer-container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .logo img {
    height: 50px;
  }

  .hero {
    height: 70vh;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.3rem;
  }

  section {
    padding: 40px 20px;
  }

  section h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    margin-right: auto;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    position: relative;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: rgba(37, 70, 83, 0.95);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    z-index: 1000;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    margin-left: 0;
  }

  .hero {
    height: 60vh;
    margin-top: 70px;
  }

  .hero-content {
    width: 95%;
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  section {
    padding: 40px 0;
  }

  .who-we-are {
    flex-direction: column;
  }

  .who-we-are-text,
  .who-we-are-image {
    text-align: center;
    flex: none;
    width: 100%;
  }

  .who-we-are-image {
    margin-top: 20px;
  }

  .tour-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .logo img {
    height: 40px;
  }

  .header-container {
    padding: 10px 15px;
  }

  .hero {
    height: 50vh;
    margin-top: 60px;
  }

  .hero-content {
    width: 100%;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .container {
    width: 95%;
    padding: 15px 0;
  }

  section {
    padding: 30px 0;
  }

  .tour-card img {
    height: 160px;
  }

  .card-content {
    padding: 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
    padding: 15px;
  }
}

/* Accessibility improvements */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #f0a500;
  outline-offset: 2px;
}
