
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
}
header {
  background-color: #003366;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;

}
.menu li {
  position: relative;
}
.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: block;
  font-size: 30px;
}
.submenu {
  display: none;
  position: absolute;
  background-color: #0055a5;
  list-style: none;
  margin: 0;
  padding: 0;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
}
.submenu li a {
  padding: 10px;
  color: white;
  border-bottom: 1px solid #004080;
}
.dropdown:hover .submenu {
  display: block;
}


.hero {
  background-color: #0055a5;
  color: white;
  padding: 100px 40px;
  text-align: center;
  margin-top: 0;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url("Sensing_Future.jpg");
  background-position: center;
  background-repeat: no-repeat;
  <!--background-size: 80% 100%;-->
  background-size: cover;
  background-color: #0B1C33;
  position: relative;
  height: 60vh;
  margin-top: 0;
  padding: 0px 0px;
}
.hero-section h1 {
	margin-top: 0;
        font-size: 2em;
  	background-color: #0055a5;
  	color: yellow;
  	padding: 40px 0px;
  	text-align: center;
	margin-bottom: 0;
    }

.hero-section h2 {
	margin-top: 0;
        font-size: 2em;
  	background-color: #0055a5;
  	color: yellow;
  	padding: 50px 50px;
  	text-align: center;
	margin-left: 300px;
	margin-bottom: 0; /* Removes the bottom margin of the h2 */
    }

.hero-section p {
        font-size: 2em;
  	background-color: #0055a5;
  	color: white;
  	padding-top: 50px;
  	padding-bottom: 50px;
	padding-left: 40px;
	padding-right: 40px;
  	text-align: left;
	margin-top: 0;    /* Removes the top margin of the p */
	margin-bottom: 0;
	text-indent: 3em;

    }



.hero-text {
  text-align: center;
  position: absolute;
  top: 70%;
  left: 40%;
  font-size: 40px;
  transform: translate(-50%, -50%);
  color: green;

}
.gallery-container {
/*
  position: relative;
  display: flex;
  align-items: center;
  background-color: purple;
  padding: 0px 60px;
  margin-top: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0;
*/

  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
  background-color: purple;
  padding: 0 5vw;
  margin: 0;

}


.gallery {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
}


.gallery img {

/*
  flex: 0 0 auto;
  width: 880px;
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  object-fit: cover;
*/

  width: 45%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 10px auto; /* Center each image in its row */
  display: block;


}
.arrow {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 10px;
}
.section {
  padding: 30px 40px;
}

.section News {
  padding: 20px 20px;
  font-size: 200px;

}

.News h2 {
  font-size: 40px;
  text-align: center;
  margin-top: 0px;
  padding: 0px 0px;

}

.section announcement {
  padding: 0px 0px;
  font-size: 150px;
  background-color: white;
  margin-bottom: 0px;
}

.announcement h2 {
	margin-top: 0px;
	font-size: 40px;
	text-align: center;
	padding: 20px 20px;
        margin-bottom: 0px;
}

.products, .about, .careers {
  background-color: white;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
footer {
  background-color: #003366;
  color: white;
  padding: 20px 40px;
  text-align: center;
}
.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}


/* Below are for mobile platform */



/* ================================
   Tablet: screens ≤ 1024px
   ================================ */
@media (max-width: 1024px) {
  header {
    padding: 16px 24px;
    gap: 12px;
  }

  .menu {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu a {
    font-size: 22px; /* from 30px */
    padding: 8px 10px;
  }

  .hero {
    padding: 64px 24px;
    text-align: center;
  }
  .hero-image {
    /* Ensure the hero photo fills nicely on narrower screens */
    background-size: cover; /* override 80% 100% */
    height: 60vh;
  }
  .hero-text {
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
  }

  .gallery-container {
    padding: 0 40px;
  }
  .gallery img {
    width: 100%;
    height: auto;           /* keep aspect ratio on tablets */
    object-fit: cover;
  }

  .section {
    padding: 40px 24px;
  }

  .News h2 {
    font-size: 32px;
  }

  footer {
    padding: 16px 24px;
  }
}

/* ================================
   Phone: screens ≤ 600px
   ================================ */
@media (max-width: 600px) {
  header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .menu {
    width: 100%;
    gap: 8px;
    flex-direction: column;      /* stack items */
  }
  .menu a {
    font-size: 18px;
    padding: 10px 12px;          /* bigger tap target */
  }

  /* Touch-friendly dropdowns (hover isn't reliable on phones) */
  .dropdown:hover .submenu { display: none; }
  .dropdown:focus-within .submenu,
  .submenu:focus-within { display: block; position: static; }

  .hero {
    padding: 40px 16px;
    text-align: left;            /* choose left or center—your call */
  }
  .hero-image {
    background-size: cover;      /* override 80% 100% */
    background-position: center;
    height: 48vh;                /* smaller hero on phones */
  }

  .hero-section h1 {
    font-size: 1.6em;
    padding: 8px 0;
  }
  .hero-section h2 {
    font-size: 1.3em;
    padding: 16px;
    margin-left: 0;              /* avoid fixed 300px offset on phones */
    margin-bottom: 0;
  }
  .hero-section p {
    font-size: 1.1em;
    padding: 16px;
    text-indent: 0;              /* long indents are hard on small screens */
    text-align: left;
  }
  .hero-text {
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #e6f2ff;              /* higher contrast on dark images if needed */
  }

  .gallery-container {
    padding: 0 12px;
  }
  .gallery {
    gap: 8px;
    scroll-snap-type: x mandatory; /* smoother swipe scrolling */
  }
  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    scroll-snap-align: center;
  }
  .arrow {
    display: none;               /* rely on swipe on phones */
  }

  .section {
    padding: 24px 16px;
  }
  .News h2,
  .announcement h2 {
    font-size: 28px;
    padding: 16px;
  }

  footer {
    padding: 16px;
    text-align: center;
  }
}

