/* Global Reset and Font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

body {
  min-height: 100vh;
  background-color: #e6f0ff; /* Light blue background */
}

header {
  background-color: #004a99; /* Deep blue */
  color: white;
  padding: 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Navigation menu */
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: inline;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

.logo {
  display: inline-block;
  margin-top: -20px;
}

.logo img {
  max-height: 100px;
  display: block;
}

.contact-details {
  text-align: right;
  font-size: 0.95rem;
}

.contact-details a {
  color: white;
  text-decoration: underline;
}

.contact-button {
  margin-top: 20px;
  text-align: center;
}

.contact-button a {
  color: white !important; /* <-- Ensures text stays white */
  background-color: #004a99;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button a:hover {
  background-color: #003366;
  transform: translateY(-2px);
}

main {
  flex: 1;
  padding: 40px 20px;
}

.about-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  margin-top: 15vh;
}

.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: white;
  border: 1px solid #b3d1ff;
  border-radius: 8px;
  padding: 40px;
  max-width: 1200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  gap: 30px;
  flex-wrap: nowrap;
}

.about-text {
  flex: 1 1 60%;
}

.about-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #f8fbff;
  padding: 8px;
  border: 1px solid #d0e2ff;
}

.about u {
  text-decoration-color: #004a99;
  text-underline-offset: 4px;
}

.about strong {
  color: #004a99;
  font-weight: 500;
}

.about p {
  margin-bottom: 1em;
}

.info-boxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.certs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.certs img {
  max-width: 150px;
  width: 100%;
  height: auto;
}

.box {
  background-color: white;
  border: 1px solid #b3d1ff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
}

.box h2 {
  margin-bottom: 10px;
  color: #004a99;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}

.gallery-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #b3d1ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  height: 200px;
  transition: transform 0.2s ease;
}

.gallery-grid a:hover {
  transform: scale(1.03);
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #b3d1ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* JS-powered lightbox modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

footer {
  background-color: #004a99;
  color: white;
  text-align: center;
  padding: 15px 0;
  bottom: 0;
  width: 100%;
}

@media (max-width: 768px) {
  .main-nav {
    width: 100%;
    margin-top: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .main-nav a {
    display: block;
  }

  .box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about {
    flex-direction: column;
    text-align: left;
    align-items: center;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }
  .about-image {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    display: flex;
  }

  .about-image img {
    max-width: 90%;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-grid img {
    height: auto;
    max-height: 150px;
    padding: 5px;
    object-fit: contain;
  }

  .contact-details {
    text-align: right;
    align-self: flex-start;
  }
  .certs {
    flex-direction: column;
    align-items: center;
  }

  .certs img {
    max-width: 100px;
  }
}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body {
  background-color: #e6f0ff;
}
