/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  line-height: 1.6;
  background: #003366; /* Dark Blue background */
}

img {
  max-width: 100%;
  height: auto;
}

/* NAVBAR */
.navbar {
  background: #003366; /* Dark Blue background */
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  height: 80px;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* LOGO */
.logo img {
  height: 60px; /* Fixed logo height */
  max-height: 8vh; /* Maintain consistent max-height relative to viewport */
}

/* MENU ITEMS */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px; /* Added padding for clickable area */
}

/* HAMBURGER MENU - Visible on small screens */
.hamburger {
  display: none; /* Hidden by default, shown on small screens */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Show hamburger icon on mobile */
  }

  .menu {
    display: none; /* Hide the menu by default */
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px; /* Below the navbar */
    right: 10px;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .menu.menu-open {
    display: flex; /* Show the menu when toggled */
  }

  .menu li a {
    color: #333;
    padding: 0.5rem 0;
  }
}

/* Mobile-only elements will be hidden on larger screens */
.desktop-only {
  display: block; /* Show on desktop */
}

.mobile-only {
  display: none; /* Hide on desktop */
}

/* For mobile screens, hide desktop and show mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none; /* Hide desktop-only content on mobile */
  }

  .mobile-only {
    display: block; /* Show mobile-only content */
  }
}

/* HERO SECTION */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  background: url('../assets/hero-bg.jpg') no-repeat center center / cover;
  color: #fff;
  min-height: 80vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 77, 0.6); /* Darker overlay for readability */
  z-index: 1;
}

.hero .overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  padding: 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #FFDA44;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Key Features Section */
.key-features {
  padding: 4rem 2rem;
  text-align: center;
}

.key-features h2 {
  font-size: 2.5rem;
  color: #FFDA44;
  margin-bottom: 40px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.features-list li {
  font-size: 1.1rem; /* Slightly smaller font size */
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); /* Adding shadow for better visibility */
}

/* FEATURE CARDS */
.feature-grid {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid layout */
}

.feature-box {
  padding: 20px;
  background: #002f6c;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid #1A1C4E;
  color: #fff;
}

.feature-box h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.feature-box p {
  line-height: 1.6;
}

.feature-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.feature-image {
  max-width: 400px; /* Limit the image size */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* CTA BUTTON */
.cta-button {
  background: #FFDA44;
  color: #1A1C4E;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e0c145; /* Darker yellow on hover */
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr; /* Stack the cards vertically */
  }

  .feature-box {
    padding: 1.5rem;
    margin-bottom: 2rem; /* Adds space between stacked cards */
  }

  .feature-images {
    flex-direction: column;
  }

  .feature-image {
    max-width: 100%;
  }

  /* Hero Section Adjustments */
  .hero {
    min-height: 75vh;
    padding-top: 80px;
  }

  .hero .overlay {
    position: relative;
    top: -75px;
  }

  /* FOOTER */
  footer {
    text-align: center;
    background-color: #001b4d;
    color: #fff;
    padding: 1rem 0;
    font-size: 0.9rem;
  }
}