body {
  background-color: black;
  background-repeat: repeat-x;
  background-size: cover;
  margin: 0;
  padding: 0;
}

.container {
  background-color: #2a5fca;
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  flex-direction: column; /* Stack logo above nav */
}

.logo {
height: 60px;
width: 60px;
margin-bottom: 2px; /* Space between logo and nav */
}
.cat-icon {
height: 50px;
width: 50px;
margin-bottom: -45px;
margin-top: -15px;
   z-index: 1000;
   visibility: hidden;
   opacity: 0;
  transition: opacity 0.4s ease;
}
@media only screen and (max-width: 768px) {
  .cat-icon {
  display: none;
  }
}
/* Base nav styles */
.nav-menu ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #2a5fca;
  justify-content: center;
  align-items: center;
}

.nav-menu li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  font-family: sans-serif;
}

.nav-menu li a:hover {
  background-color: #013cb4;
  border-radius: 25px;
}

/* Hide checkbox */
.menu-checkbox {
  display: none;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.menu-icon .bar {
  height: 4px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  margin: 4px 0;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #2a5fca;
    width: 100%;
    z-index: 1000;
  }

  .menu-checkbox:checked ~ .nav-menu {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu li a {
    padding: 12px 16px;
    font-size: 18px;
  }
}
img {
  max-width: 100%; /* Ensure images don’t overflow */
  height: auto;
}

h1 {
  text-align: center;
  font-family: sans-serif;
  font-size: 4rem;
  color: white;
  padding: 20px;
  border-radius: 15px;
  background-color:  #2a5fca;
  display: block;
  margin: 0 auto;
  width: 600px; /* Optional: You can control the width */
  height: auto;
  margin-bottom: 20px;
  margin-top: 50px;
  box-sizing: border-box;
  background-size: contain;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Added text shadow for contrast */
}
@media (max-width: 768px) {
  h1 {
    width: 300px;
    font-size: 3rem;
  }
}
@media (max-width: 480px) {
  h1 {
  }
}

h2 {
  text-align: center;
  font-family: sans-serif;
  font-size: 4rem;
  color: #2a5fca;
  display: block;
  margin: 0 auto;
  margin-bottom: 20px;
  margin-top: 20px;
  box-sizing: border-box;
  position: sticky;
}
@media (max-width: 768px) {
  h2 {
  font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  h2 {
  font-size: 1.5rem;

  }
}
.bio{
  display: flex;
  flex-wrap: nowrap; /* Ensures content wraps correctly on smaller screens */
  align-items: flex-start; /* Aligns the items to the top */
  display: flex;
 justify-content: center; /* centers the images horizontally */
}

.bio-image {
  width: 100%;
  max-width: 350px;
  max-height: 350px;
  margin-right: 15px; /* Space between image and text */
  margin-left: 15px;
  margin-bottom: 10px; /* Space between image and text if it wraps */
  border-radius: 15px;
}
@media (max-width: 768px) {
  .bio-image {
    max-width: 50%; /* Resize the image to 80% of its container width */
    max-height: 50%;
  }
}

/* Adjust image size for mobile-sized screens (example: 480px or below) */
@media (max-width: 480px) {
  .bio-image {
    max-width: 30%; /* Resize the image to 100% of its container width */
    max-height: 30%;
  }
}
.bio-text {
  text-align: center;
  font-family: sans-serif;
  font-size: 1.5rem;
  color: white;
  display: block;
  margin: 0 auto;
  margin-bottom: 20px;
  margin-top: 20px;
  box-sizing: border-box;
  position: sticky;
  max-width: 600px;
  min-width: 600px;
}
@media (max-width: 768px) {
  .bio-text {
    font-size: .5rem; /* Adjust font size for smaller screens */
    padding: 8px; /* Reduce padding for smaller screens */
    max-width: 180px;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .bio-text {
    font-size: .8rem; /* Smaller font size for mobile */
    padding: 8px; /* Further reduce padding */
    max-width: 250px;
    min-width: 250px;
    text-align: center;
  }
}
.image-gallery {
  gap: 10px;
  flex-wrap: nowrap; /* Ensures content wraps correctly on smaller screens */
  box-sizing: border-box;
  background-size: contain;
  align-items: center;
  display: flex;
 justify-content: center; /* centers the images horizontally */
 width: 100%;
}
@media (max-width: 768px) {
  .image-gallery {
    max-width: 60%; /* Resize the image to 80% of its container width */
    max-height: 60%;

  }
}

@media (max-width: 480px) {
  .image-gallery {
    max-width: 30%; /* Resize the image to 100% of its container width */
    max-height: 30%;
position: absolute;
left: 140px;
  }
}
.gallery-image {
  width: 100%;
  max-width: 400px;
  max-height: 300px;
  margin-bottom: 10px; /* Space between image and text if it wraps */
  border-radius: 10px;
   flex-shrink: 1;
}
@media (max-width: 768px) {
  .gallery-image {
    max-width: 150px;
  }
}

/* Mobile-sized screens */
@media (max-width: 480px) {
  .gallery-image {
    max-width: 100px;
  }
}
.navbar {
position: relative;
top: 0;
width: 100%;
background-color: #2a5fca;
z-index: 1000;
font-family: sans-serif;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Added text shadow for contrast */
}

.navbar nav ul {
display: flex;
justify-content: center;
list-style: none;
}

.navbar nav ul li {
margin: 10px;
}

.navbar nav ul li a {
text-decoration: none;
color: white;
font-size: 40px;
padding: 10px 40px;
background-color 0.3s;
border-radius: 50px;
}

.navbar nav ul li a:hover {
background-color: #013cb4;
border-radius: 50px;
}
@media (max-width: 480px) {
  .navbar {
    margin-top: 138px;
  }
}
@media (max-width: 480px) {
  .navbar nav ul li a {
    font-size: 20px;
  }
}
.copyright-watermark {
  position: static;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5); /* Use correct RGB values for white */
  font-family: sans-serif;
  z-index: 9999;
  text-align: center;
  padding-bottom: 20px;
}
