body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: white;
  background-color: #000000;
  background-image: url("img/milkyway_galaxy.jpg");
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

header {
  background-color: #00306e;
  color: white;
  padding: 10px;
  padding-top: 20px;
  text-align: center;
  position: relative;
  top: 0px;
  left: 0px;
  width: auto;
  z-index: 3;
}

header h1 {
  margin: 0;
}

nav {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 4;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: auto;
  background-color: #0048a6;
  position: sticky;
  top: 0;
  height: auto;
}

/* li a.active {
  background-color: #04AA6D;
  color: white;
} */

li {
  display: inline-block;
  margin-right: 2px;
}

li a {
  width: auto;
  display: block;
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}











section {
  padding: 20px;
  margin: 20px;
}

section#about, section#contact {
  background-color: #c7c7c7;
  border-radius: 10px;
}

.project1 .header-image {
  width: 85%;
  max-width: 175px;
  height: auto;
  margin-right: 20px;
  transition: max-width 0.3s, width 0.3s;
}

.project2 .header-image {
  width: 50%;
  max-width: 100px;
  height: auto;
  margin-right: 20px;
  transition: max-width 0.3s, width 0.3s, transform 0.3s, rotate 0.3s;
}

.project3 .header-image {
  width: 65%;
  max-width: 175px;
  height: auto;
  margin-right: 20px;
  transition: max-width 0.3s, width 0.3s;
}

.project1 .background-image-container {
  position: relative;
  padding-top: 56.25%;
  background-image: url("img/ow_map_background.jpg");
  background-size: 200%;
  background-position: center;
  overflow: hidden;
  height: 160px;
  transition: width 0.3s, background-size 0.3s;
}

.project1:hover .background-image-container {
  content: "";
  position: relative;
  background-image: url("img/ow_map_background.jpg");
  background-size: 175%;
  background-position: center;
  z-index: 1;
  transition: background-size 0.3s;
}

.project2 .background-project2-white {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: rgb(245, 255, 130);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  height: 160px;
}

.project2 .background-image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-image: url("img/pages.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  height: 160px;
  transform: rotate(-10deg);
  transition: transform 0.3s;
}

.project2:hover .background-image-container {
  content: "";
  position: absolute;
  background-image: url("img/pages.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: rotate(-25deg);
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 400px;
  overflow: hidden;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s, z-index 0.3s;
}

.project3 .background-image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  height: 160px;
}

.project3 .background-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff0000;
  background-position: center;
  filter: blur(500px);
  opacity: 0;
  z-index: 1;
  transition: filter 0.2s, backdrop-filter 0.2s, opacity 0.2s;
}

.background-image-container img.header-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.project1, .project2, .project3 {
  background-color: #c7c7c7;
  /* background-color: #0048a6; */
  height: auto;
  margin: 10px;
  border-radius: 12px;
  transform: translateY(0);
  position: relative;
  z-index: 1;
  transition: background-color 0.3s, box-shadow 0.1s, transform 0.3s, z-index 0.5s;
  flex: 1;
  max-width: 400px;
  overflow: hidden;
}

.project1:hover, .project2:hover, .project3:hover {
  background-color: #ffffff;
  /* background-color: #006eff; */
  transform: translateY(-5px);
  transition: background-color 0.1s, box-shadow 0.1s, transform 0.3s;
}

.project1:hover .header-image {
  width: 90%;
  max-width: 90%;
  transition: width 0.3s;
}

.project2:hover .header-image {
  rotate: 50deg;
  transform: translateX(-80px);
  transition: rotate 0.3s, transform 0.3s;
}

.project3:hover .header-image {
  width: 90%;
  max-width: 90%;
  transition: width 0.3s;
}

.project1:hover .background-image-container::before, .project2:hover .background-image-container::before, .project3:hover .background-image-container::before {
  filter: none;
  opacity: 1;
  transition: filter 0.2s, backdrop-filter 0.2s, opacity 0.2s;
}

.project1 a, .project2 a, .project3 a {
  color: black;
  text-decoration: none;
}

.project1 h3, .project2 h3, .project3 h3, .project1 p, .project2 p, .project3 p {
  text-align: center;
}

footer {
  background-color: #00306e;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  bottom: 0;
  left: 0;
  position: relative;
}

footer a, footer p {
  color: white;
  text-decoration: none;
}

html {
  height: 100%;
  width: 100%;
}





nav ul li a {
  position: relative;
  overflow: hidden;
  padding-bottom: 8px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: white;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 90%;
}