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

.full-screen-image {
  width: 100vw;   /* Viewport width */
  height: 100vh;  /* Viewport height */
  object-fit: cover; /* Crop to fill screen without distortion */
  display: block;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f3f7fa;
  color: #222;
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  background-color: #004080;
  color: #fff;
  font-size: large;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.logo {
  height: 40px;
  margin-right: 15px;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  gap: 30px;
}

nav ul li {
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

nav a.active {
  background-color: #003366;
  color: #fff;
  box-shadow: inset 0 -2px 0 #cce4ff;
}

/* Hover effect: lighten color and move up slightly */
nav a:hover {
  color: #ffffff;
  background-color: #0059b3;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(204, 228, 255, 0.4);
  cursor: pointer;
}

.hero {
  background-color: #e0f7fa;
  margin: 0;
  width: 100%;
}

.hero-text {
  padding: 50px;
  font-size: 20px;
  text-align: center;
  background-color: #e6f7f7;
}
.full-width-video {
  width: 100%;
  height: 400px;       /* or height you want */
  object-fit: cover;   /* makes video cover the area, cropping if needed */
  display: block;      /* remove any inline spacing */
  margin: 0 auto;      /* centers if it's smaller than container */
}

/* Industries page hero image */
.full-width-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Center all <h2> and <p> inside the industry-content section */
.industry-content h2,
.industry-content h1,
.industry-content p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

.solutions-page p,
.solutions-page h1,
.solutions-page h2 {
  text-align: center;
}

.solutions-page h1 {
  margin-top: 60px;
}

.solutions-page h2 {
  margin-top: 40px;
}

.contact-page {
  text-align: center; /* centers all text inside this container */
  max-width: 800px;   /* optional: limits width for better reading */
  margin: 40px auto;  /* centers the block horizontally and adds top/bottom margin */
  padding: 0 20px;    /* some side padding on smaller screens */
}

.contact-page h1 {
  margin-top: 40px;  /* space above the heading */
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: bold;
}

.contact-page p {
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #333; /* dark gray for readability */
}

.full-screen-image {
  width: 100vw;      /* Full viewport width */
  height: 20%;
  display: block;
  margin: 0;
  border-radius: 0;
}

#elements h2 {
  text-align: center;
  margin-top: 40px; /* add some space above */
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}
.card-container {
  display: flex;
  justify-content: space-around;
  padding: 40px;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  padding: 20px;
  width: 280px;
  margin: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  text-align: center;
  transition: all 0.4s ease; /* smooth transition on hover */
  cursor: pointer;          /* pointer on hover */
}

.card:hover {
  background-color: #004080; /* example: change bg color on hover */
  color: white;              /* text color changes for contrast */
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.4); /* stronger shadow */
  transform: translateY(-10px); /* subtle lift on hover */
}

.card:hover img {
  filter: brightness(0.8); /* darken image a bit on hover */
  transition: filter 0.4s ease;
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

#experiments {
  max-width: 900px;
  margin: 50px auto;
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
  animation: fadeIn 1s ease;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Caption box over image */
.caption {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
}

.caption h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.caption p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Simple fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.experiments-container {
  max-width: 800px;
  margin: 0 auto;       /* 🔑 This centers the div horizontally */
  text-align: center;   /* Optional: centers the heading and list text */
  padding: 40px 20px;
}

.experiment-list {
  list-style: none;     /* Optional: remove bullet points */
  padding: 0;
  margin: 20px 0;
}

section img {
  display: block;
  margin: 20px auto;
  width: 100%;
  height: auto;
  max-height: 400px; /* ✅ Adjust this value to your preference */
  object-fit: cover;
  margin: 0%;
  border-radius: 0%;
}

.contact-container {
  text-align: left;
  padding: 10px 20px;
  max-width: 800px;
  margin: 40px auto;
  background-color: #f9f9f9;
  border-radius: 20px; /* More rounded container */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-container h2 {
  font-weight: 600;
  color: #004080;
  margin-bottom: 12px;
  font-size: 1.5rem;
  text-align: center;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 4px 8px;
  margin: 4px 0 6px 0;
  border: 1px solid #ccc;
  border-radius: 15px; /* Rounder inputs and textarea */
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  resize: vertical;
  box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #004080;
  outline: none;
}

form textarea {
  min-height: 30px;
  max-height: 50px;
  line-height: 1.2;
}

button {
  padding: 10px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  width: fit-content;
  font-size: 13px;
  transition: background-color 0.3s ease;
  margin: 10px auto;
}

button:hover {
  background-color: #0066cc;
}

.contact-container h2 {
  margin-bottom: 20px;
  color: #004080;
  font-weight: 700;
  font-size: 28px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  width: 100%;
}

input, textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

button {
  padding: 10px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: fit-content;  /* Makes the button size fit its text */
}

footer {
  background-color: #002e4d;  /* Dark blue background */
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #00bcd4; /* Accent color on hover */
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 1000;
  display: none;
  font-size: 18px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
}

/* Media Queries for Responsive Design */

/* Phones: max width 600px */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    padding: 15px 20px;
    font-size: medium;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .hero-text {
    padding: 20px 10px;
    font-size: 16px;
  }

  .card-container {
    flex-direction: column;
    padding: 20px 10px;
  }

  .card {
    width: 100%;
    margin: 10px 0;
  }

  .full-width-video {
    height: 200px;
  }

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

  footer {
    font-size: 0.8em;
    padding: 15px 10px;
  }

  #backToTop {
    bottom: 10px;
    right: 10px;
    padding: 8px;
    font-size: 16px;
  }
}

/* Tablets: between 601px and 992px */
@media (min-width: 601px) and (max-width: 992px) {
  header {
    padding: 20px 30px;
    font-size: large;
  }

  nav ul {
    gap: 20px;
  }

  .hero-text {
    padding: 30px 20px;
    font-size: 18px;
  }

  .card-container {
    padding: 30px 20px;
  }

  .card {
    width: 45%;
    margin: 10px 5px;
  }

  .full-width-video {
    height: 300px;
  }

  .contact-container {
    padding: 30px 20px;
  }

  footer {
    font-size: 0.9em;
  }
}
@media (max-width: 600px) {
  .full-width-video {
    height: 200px; /* adjust as you like for phones */
  }
}
.full-width-video::-webkit-media-controls {
  display: none !important;
}

.full-width-video::-moz-media-controls {
  display: none !important;
}

.full-width-video::-ms-media-controls {
  display: none !important;
}

.full-width-video {
  pointer-events: none;
}
