body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    background: url('https://images.pexels.com/photos/207367/pexels-photo-207367.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center fixed;
    background-size: cover;
}

/* Navigation Bar Styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  color: #fff;
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* Space between the menu items and contact */
  align-items: center;
  box-sizing: border-box; /* Prevents content from overflowing */
}

/* Center Menu Items */
.navbar .menu {
  display: flex;
  justify-content: center;
  flex-grow: 1; /* Ensure the menu items take up the available space */
}

.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  display: inline-block;
}

.navbar ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #f39c12; /* Hover color */
}

/* Styling for the 'Contact' menu item */
.navbar .contact {
  margin-left: auto; /* Pushes 'Contact' to the far right */
  display: flex;
  align-items: center;
  padding: 0 10px; /* Add padding to avoid touching the edge */
}

.navbar .contact a {
  font-size: 16px;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.navbar .contact a:hover {
  color: #f39c12;
}

/* When page is scrolled past the first section, hide the navbar */
.navbar-hidden {
  top: -100px; /* Hide the navbar */
}

/* Add extra space below the fixed navbar to prevent content being hidden under it */
body {
  padding-top: 60px; /* Adjust based on your navbar height */
}

.navbar img {
  height: 40px;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: black;
  font-size: 16px;
  font-weight: bold;
  position: relative;
}

.menu a:hover {
  color: #e42828;
}

.contact-button {
  padding: 10px 15px;
  background-color: rgb(200, 29, 29);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
}

.contact-button:hover {
  background-color: darkred;
}

.dropdown {
  position: relative;
}

.dropdown-link::after {
  content: '\25BC';
  margin-left: 5px;
  font-size: 12px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 4px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 5px 10px;
  color: black;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: #f4f4f4;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .navbar {
      flex-wrap: wrap;
  }

  .menu {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
      width: 100%;
  }

  .menu a {
      padding: 5px 0;
      width: 100%;
  }

  .contact-button {
      align-self: flex-end;
      margin-top: 10px;
  }
}

.lab-section {
    background-color: rgba(0, 0, 0, 0.8); /* Full-page black overlay */
    color: white;
    padding: 50px 20px;
    min-height: 100vh; /* Ensures full-page coverage */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lab-title h1 {
    font-size: 3em;
    margin-bottom: 30px;
}

.lab-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two photos per row */
    gap: 30px; /* Space between photos */
    max-width: 1200px;
    width: 100%;
}

.lab-photo {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    width: 100%;
    height: 300px; /* Larger photo size */
    border-radius: 10px;
}

.lab-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fits properly */
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lab-photo:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

.lab-photo:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 10px;
}

.photo-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Footer Styling */
.footer {
    background-color: #9c0d0d;
    color: #ecf0f1;
    padding: 40px 20px;
    font-family: Montserrat, sans-serif;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-left, .footer-right {
    width: 45%;
  }
  
  .footer-left h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .footer-left p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .footer-right h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .footer-right iframe {
    width: 100%;
    border-radius: 8px;
  }
  
  .footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #34495e;
    padding-top: 15px;
  }
  
  .footer-bottom p {
    margin: 5px 0;
  }
  
  .go-to-top {
    display: inline-block;
    margin-top: 10px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .go-to-top:hover {
    color: #3498db;
  }
  
  /* Responsive Styling */
  @media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
  
    .footer-left, .footer-right {
        width: 100%;
        text-align: center;
    }
  
    .footer-right iframe {
        width: 90%;
        height: 180px;
    }
  }
  