/* General Styles */
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* Base font size for responsive typography */
html {
  font-size: 16px;
}

/* Responsive container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Navigation Bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.active-page {
  color: orange !important;
}
/* Logo Styles */
.logo {
  margin-right: auto; /* Push logo to the far left */
}

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

/* 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 */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

nav ul li a {
  color: white;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

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: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.5rem;
}

.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: #07356D; /* 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;
}

/* Background Image Container */
.background-image-container {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
}

.background-image-container img.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Ensure the image stays behind the content */
}
.container {
  padding: 50px 20px;
}
.highlight {
  font-weight: bold;
}
.description {
  color: #555;
}
.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;
}
.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-tender-container {
  background: white;
}
.project-container {
  display: flex;
  background: white;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.project-image-container {
  width: 70%;
}
.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.project-text-container {
  width: 50%;
  padding: 20px;
}
.h2 {
  color: #1e3a8a;
  margin: 0;
}
.h3 {
  color: #c00000;
  font-size: 16px;
}
.p {
  margin: 8px 0;
  color: #333;
}
.project-highlight {
  color: #0073e6;
  font-weight: bold;
}
.project-link {
  color: red;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .project-container {
    flex-direction: column; /* Stacks elements vertically */
  }

  .project-image-container {
    width: 100%; /* Takes full width */
    height: auto; /* Adjusts height automatically */
  }

  .project-text-container {
    width: 100%; /* Takes full width */
    padding: 15px; /* Adjust padding */
  }

  .h2 {
    font-size: 20px; /* Adjust font size for readability */
  }

  .h3 {
    font-size: 14px;
  }

  .p {
    font-size: 14px;
  }
}

.gear-container {
  background: white;
  align-items: center;
  text-align: center;
  padding: 80px 10%;
}
.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: 4vw;
  }
  .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;
  }
}
.project-type-container {
  position: relative;
  width: 100%;
  min-height: 61vw;
  background: url("/img/projects/PROJECTS.jpg") center/cover no-repeat;
  background-position: auto 50%;
  padding: 0;
  margin-top: -35px;
  color: white;
}
.project-type-text {
  align-items: center;
  justify-content: center;
  text-align: left;
  margin-left: 49px;
  padding-top: 368px;
  margin-top: 11px;
  font-size: 26px;
}
.download-btn {
  background-color: #003366; /* Dark blue background */
  color: white; /* White text color */
  padding: 10px 30px; /* Padding for button */
  text-decoration: none; /* Remove underline */
  border-radius: 25px; /* Rounded corners */
  font-size: 16px; /* Font size */
  font-weight: bold; /* Bold text */
  text-align: center; /* Center text */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
  transition: background-color 0.3s, transform 0.2s; /* Smooth transition */
}

.download-btn:hover {
  background-color: #00509e; /* Lighter shade on hover */
  transform: translateY(-2px); /* Lift effect */
}
@media (max-width: 768px) {
  .project-type-container {
    min-height: 80vw; /* Adjust height for smaller screens */
    margin-top: -6; /* Remove negative margin */
  }

  .project-type-text {
    padding-top: 0px; /* Reduce padding for smaller screens */
    margin-top: 0px;
    margin-left: 12px;
    text-align: center; /* Adjust margin for smaller screens */
  }

  .download-btn {
    padding: 10px 20px; /* Adjust padding for smaller buttons */
    font-size: 14px; /* Reduce font size for smaller screens */
  }
}
.percentage-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Allows space between sections */
  flex-direction: column;
  text-align: center;
  padding: 20px;
  position: relative;
}

.image-section {
  width: 100%;
  height: 400px;
  background: url("/img/competencies/Transports.jpg") no-repeat left top;
  background-size: 120% auto;
  background-position: 330% 50%;
  position: absolute; /* Make sure it's placed correctly without extra space */
  top: 0; /* Ensure it's at the top without shifting */
  left: 0; /* Align to the left */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align the content to the left */
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin: 0; /* Remove any margin */
  padding: 0;
}

.percentage-title-text {
  margin-top: 10px; /* Adjust to move the text closer to the top */
  margin-left: 500px; /* Adjust to move the text to the right */
  font-size: 28px;
  color: #002366;
  position: relative; /* Use relative positioning */
  top: -32px; /* Move the text to the top */
  left: -65px; /* Move the text to the right */
  font-size: 30px;
  color: #002366;
  z-index: 1;
}

.percentage-text {
  font-size: 160px;
  font-weight: bold;
  color: transparent;
  -webkit-text-stroke: 4px #ff4c4c;
  background: url("/img/team/82.png") no-repeat center center/contain;
  width: 500px;
  height: 240px;
  display: inline-block;
  position: relative; /* Allow positioning within the parent container */
  top: 13px; /* Move the text to the top */
  z-index: 1;
  right: -222px;
}

.stats-section {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 900px;
  background: rgba(217, 39, 93, 0.8); /* Keep a transparent background */
  height: 80px;
  color: white;
  font-size: 18px;
  position: absolute; /* Position it over the image */
  top: 100%; /* Adjust to center vertically */
  right: -122px;
  transform: translateY(-50%); /* Center the stat box vertically */
  opacity: 0.7; /* Make it slightly transparent */
}

.stat-box {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-right: 1px solid white;
  background-color: rgba(
    0,
    0,
    0,
    0.3
  ); /* Transparent background for the stat box */
}

.stat-box:last-child {
  border-right: none;
}

/* Responsive Fixes */
@media (max-width: 1200px) {
  .percentage-text {
    font-size: 10vw;
  }
  .stats-section {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .image-section {
    height: 316px;
    width: 137px;
    background-size: cover;
    background-position: center;
    font-size: 18px;
    border-radius: 12px;
  }

  .percentage-title-text {
    margin-left: 50%;
    font-size: 20px;
    top: -15px;
    left: -25px;
  }

  .percentage-text {
    font-size: 80px;
    -webkit-text-stroke: 2px #ec174c;
    width: 250px;
    height: 120px;
    top: 5px;
    right: -50px;
  }

  .stats-section {
    max-width: 90%;
    height: 50px;
    font-size: 11px;
    right: 0;
    top: 95%;
  }

  .stat-box {
    padding: 5px;
  }
}

.download-section {
  position: relative;
  width: 100%;
  height: 250px;
  background: url("/img/competencies/About-Sist-Engineers.jpg") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 102, 204, 0.7);
}
.content {
  position: relative;
  z-index: 2;
}
.content a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  display: flex;
  align-items: center;
}
.content a strong {
  font-weight: bold;
}
.download-icon {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-left: 10px;
}
.get-in-touch-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: white;
  font-weight: normal;
}
@media (max-width: 768px) {
  .get-in-touch-text {
    font-size: 1.8rem; /* Adjust font size for smaller screens */
    left: 8%; /* Move it closer to the edge */
  }
}
/* 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;
}

/* Media Queries */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
  
  .contact-container {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }

  nav {
    padding: 15px 30px;
  }

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

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  nav {
    padding: 15px 20px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
  }

  nav ul.active {
    display: flex;
  }

  .burger-menu {
    display: flex;
  }

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

  .project-type-container {
    margin-top: 40px;
  }

  .background-image-container {
    height: 50vh;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 12px;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .project-type-text {
    padding: 0 10px;
  }

  .contact-form {
    padding: 20px 10px;
  }

  .background-image-container {
    height: 40vh;
  }
}

/* Touch Device Optimization */
@media (hover: none) {
  nav ul li a:hover {
    background-color: transparent;
  }

  .download-btn:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  nav,
  .burger-menu,
  .download-section,
  .contact-section {
    display: none;
  }

  .background-image-container {
    height: auto;
  }

  .project-type-container {
    margin-top: 0;
    page-break-inside: avoid;
  }
}
