/* General Styles */
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: #f8f9fa;
}

header {
  background: url("hero-image.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 60px 0;
  position: relative;
  width: 100%;
  min-height: 70vh; /* Ensures the image covers enough height */
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  header {
    min-height: 28vh; /* Adjusts height for smaller screens */
    padding: 20px 0;
  }
}

/* Background Image Transition */
.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.background-image.active {
  opacity: 1;
}

/* Text and Backdrop Fade Effect */
.hero h1,
#fadeBackdrop {
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

/* Background Slideshow */
.background-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place it behind the content */
  overflow: hidden;
}

.background-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image covers the entire area */
  opacity: 0; /* Hide all images by default */
  transition: opacity 1s ease-in-out; /* Smooth transition */
}

.background-slideshow img.active {
  opacity: 1; /* Show the active image */
}

/* Navigation Bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: transparent; /* Make the navigation pane transparent */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease; /* Smooth transition for background */
  box-sizing: border-box; /* Ensure padding is included in the width */
}

.active-page {
  color: orange !important;
}

/* Add a background when scrolling (optional) */
/* nav.scrolled {
    background: rgba(15, 15, 15, 0.9); Semi-transparent black background
} */

/* Logo Styles */
.logo {
  margin-right: auto; /* Push logo to the far left */
}

.logo img {
  height: 35px; /* Adjust the height as needed */
  width: auto; /* Maintain aspect ratio */
}

/* Burger Menu Styles */
.burger-menu {
  display: none; /* Hidden by default */
  flex-direction: column;
  cursor: pointer;
  z-index: 1001; /* Ensure it's above other elements */
  margin-left: auto; /* Push burger menu to the far right */
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* Navigation Links with Transparent Backdrop */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 10px 20px; /* Add padding for better spacing */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black backdrop */
  border-radius: 10px; /* Rounded corners */
  backdrop-filter: blur(5px); /* Optional: Add a blur effect for modern look */
}

nav ul li a {
  color: white;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap; /* Prevent text from wrapping */
  padding: 5px 10px; /* Add padding to links */
  border-radius: 5px; /* Rounded corners for links */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1; /* Ensure the text appears above the background image */
  text-align: center;
  color: white;
  padding-top: 20%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-top: -92px;
}

.hero p {
  font-size: 1.5rem;
}

/* Sections */
section {
  padding: 80px 10%;
}

.services {
  background: white;
}

.services h2 {
  color: #003366;
  font-size: 32px;
  text-transform: uppercase;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-box {
  background: #007bff;
  color: white;
  padding: 40px;
  border-radius: 10px;
  flex: 1;
  min-width: 250px;
}

#projects,
#team,
#contact {
  background: #f1f1f1;
  padding: 100px 10%;
}

/* Footer */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .services-container,
  .team-container {
    flex-direction: column;
    align-items: center;
  }

  .service-box,
  .team-member {
    width: 90%;
  }

  form input,
  form textarea {
    width: 100%;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px; /* Reduce padding for smaller screens */
  }

  nav ul {
    display: none; /* Hide navigation links by default */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8); /* Darker backdrop for better readability */
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box; /* Ensure padding is included in the width */
    border-radius: 0; /* Remove rounded corners for full-width backdrop */
  }

  nav ul.active {
    display: flex; /* Show navigation links when active */
  }

  .burger-menu {
    display: flex;
    background-color: transparent; /* Default background */
    transition: background-color 0.3s ease-in-out;
    margin-top: -42px;
    margin-right: 26px; /* Show burger menu on smaller screens */
  }


/* Style when scrolled */
.burger-menu.scrolled {
    background-color: darkblue; /* Change to dark blue when scrolled */
}

  /* Prevent text overflow in navigation links */
  nav ul li a {
    font-size: 16px; /* Slightly larger font for mobile */
    padding: 10px 15px; /* Increase padding for better touch targets */
  }
}

/* Map Section */
#map {
  padding: 80px 10%;
  text-align: center;
  background: #f1f1f1; /* Match the background of other sections */
}

#map h2 {
  color: #003366;
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Map Container */
.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect ratio of 16:9 (height/width * 100%) */
  overflow: hidden;
  border-radius: 10px; /* Add rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Map Iframe */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.container {
  padding: 110px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Adds spacing between the columns */
  color: #07356d;
}
.highlight {
  font-weight: normal;
  font-size: 36px;
}
.description {
  color: #07356d;
  margin-top: 53px;
}
.services {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0076a8;
  position: relative;
}
.service {
  width: 320px;
  height: 320px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s, background-color 0.3s;
  text-align: center;
  font-size: 25px;
  text-decoration: none;
}
.service img {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}
.service:hover {
  transform: scale(1.2);
  background-color: #003366;
  border-radius: 10px;
  z-index: 10;
}
/* Mobile adjustments */
@media (max-width: 768px) {
  .services {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0076a8;
    position: relative;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 2vw; /* Adds spacing between items */
    padding: 2vw;
  }
  .service {
    width: 100px;
    height: 100px;
    font-size: 10px;
  }
  .service img {
    width: 40px;
    height: 40px;
    position: relative;
    top: 10px;
  }
}

.project-container {
  display: flex;
  width: 80%;
  max-width: 900px;
  padding-left: 10%;
}
.project-image-section {
  margin-bottom: 12px;
  width: 50%;
}
.project-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.project-content-section {
  width: 50%;
  padding: 40px;
}
.project-content-section h2 {
  color: #07356d;
  margin-bottom: 10px;
  font-size: 50px;
  font-weight: normal;
  
}
.project-content-section h3 {
  color: #ec174c;
  font-size: 16px;
  margin-bottom: 10px;
}
.project-content-section p {
  font-size: 18px;
  margin: 28px 0;
}
.project-highlight {
  color: #0293c6;
  font-weight: bold;
}
.project-view-detail {
  color: #ef4923;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}
.project-view-detail:hover {
  text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 768px) {
  body {
    height: auto;
  }
  .project-container {
    flex-direction: column;
    width: 90%;
  }
  .project-image-section,
  .project-content-section {
    width: 100%;
  }
  .project-image-section img {
    height: auto;
  }
  .project-content-section {
    padding: 0px;
    text-align: center;
  }
}
.gear-container {
  background: white;
  align-items: center;
  text-align: center;
}
.message-container {
  max-width: 90%;
  width: 500px;
  margin: auto;
  background: white;
  padding: 20px;
  position: relative;
}
.message-profile-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}
.message-title {
  font-size: 2vw;
  font-weight: normal;
  color: #0f2c5c;
}
.message {
  font-size: 1vw;
  color: #666;
}
.message-highlight {
  color: #0f2c5c;
  font-weight: bold;
}
.dots {
  margin-top: 10px;
}
.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
}
.dot.active {
  background-color: #ff4500;
}
@media (max-width: 768px) {
  .message-title {
    font-size: 7vw;
  }
  .message {
    font-size: 2vw;
  }
  .message-container {
    padding: 15px;
  }
}

.contact-section {
  background: url("/img/home/Footer-web-images.jpg") no-repeat center
    center/cover;
  color: white;
  padding: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-container {
  display: flex;
  width: 80%;
  max-width: 1000px;
  justify-content: space-between;
  align-items: flex-start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 45%;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.8); /* Adjust the alpha (0.8) for transparency */
}
.contact-form button {
  background: #00aeef;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 5px;
}
.contact-info {
  width: 51%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  margin-top: 7px;
}
.contact-info div {
  margin-bottom: 20px;
  gap: 45px;
  flex: 1;
}
.contact-info strong {
  display: block;
  margin-bottom: 10px;
}
.social-icons {
  margin-top: 42px;
  text-align: left;
  display: flex;
  flex-direction: row;
  gap: 58px;
}
.social-icons img {
  width: 30px;
  margin: 5px 0;
}
.contact-title {
  text-align: center;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-form,
  .contact-info {
    width: 100%;
    text-align: center;
  }
  .contact-info-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-info div {
    text-align: center;
  }
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.popup-content {
  background-color: white;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#close-btn {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 3px;
}

#close-btn:hover {
  background-color: #0056b3;
}
