:root {
  --textHighlightColor: #42B8FD;
}

body {
  margin: 0px;
  font-family: "Roboto", "Arial", "Helvetica", "sans-serif";
  font-size: 24px;
  color: white;
}

h1 {
  margin: 0px 0px 100px 0px; /* top-right-bottom-left */
  font-size: 5em;
  font-weight: bold;
  line-height: 1.0;
}

h2 {
  font-size: 3em;
  font-weight: bold;
  margin: 0px;
}

h3 {
  margin: 0px 0px 10px 0px;
  font-size: 1.5em;
  align-self: flex-start;
}

section {
  position: relative;
  padding: 0px 10%; /* top-bottom left-right */
  min-height: 100vh;
}

p {
  margin: 0px 0px 25px 0px;
  max-width: 800px;
  line-height: 1.6;
}

a {
  color: var(--textHighlightColor);
  text-decoration: none;
}

.fa-regular {
  color: white;
  text-decoration: none;
}

.backgroundDarker {
  background-color: #004A98;
}

.backgroundLighter {
  background-color: #005DBF;
}

.buttonLink {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.buttonLink:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.textHighlight {
  color: var(--textHighlightColor);
}

.container {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 100px;
  row-gap: 0px;
  padding-bottom: 50px;
}

.header {
  padding: 70px 0px;
}

.navigation {
  font-size: 36px;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 10;
}

#logo {
  position: fixed;
  top: 20px;
  left: 30px;
  font-size: 2em;
  font-weight: bold;
  --transitionTime: 1s;
  --transitionType: ease-out;
  transition-property: top left fontSize;
  transition-duration: var(--transitionTime);
  transition-timing-function: var(--transitionType);
  z-index: 100;
}

#logo p {
  margin: 0px;
  line-height: normal;
}

#logo span {
  position: absolute;
  top: 25px;
 }

#logo .text {
  z-index: 1;
}

#logo .text .left {
  left: 0px;
  z-index: 1;
  transition-property: top;
  transition-duration: var(--transitionTime);
  transition-timing-function: var(--transitionType);
}

#logo img {
  position: absolute;
  left: 100px;
  height: 100px;
  width: auto;
  transition-property: height left;
  transition-duration: var(--transitionTime);
  transition-timing-function: var(--transitionType);
  z-index: 0;
}

#logo .text .right {
  left: 165px;
  transition-property: left top;
  transition-duration: var(--transitionTime);
  transition-timing-function: var(--transitionType);
  z-index: 1;
}

 #title .content {
  display: grid;
  grid-template-rows: 80% 20%;
  height: 100vh;
  text-align: center;
}

#title h1 {
  align-self: end;
}

#hero .container {
  align-items: center;
}

#hero .content {
  flex: 50%;
  font-size: 1.5em;
}

#hero .image {
  flex: 25%;
  align-content: center;
  padding-bottom: 40px;
}

#hero img {
  max-height: min(800px, 60vh);
  width: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#services .container {
  justify-content: space-evenly;
  align-items: stretch;
  column-gap: 5%;
  row-gap: 75px;
}

.service {
  flex: 20%;
  min-width: 250px;
  max-width: 350px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
}

.service img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 30% 30%;
  margin: 0 auto 15px auto;
}

#team .header {
  padding: 50px 0px;
}

#team .container {
  justify-content: space-around;
  column-gap: 5%;
  row-gap: 50px;
}

.team-member {
  flex: 20%;
  min-width: 250px;
  max-width: 350px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.team-member h3 {
  text-align: center;
}

.team-member img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
}

.tetragrammaton {
  font-variant: small-caps;
}

#contact .header {
  padding: 100px 0px;
}

#contact .container {
  align-items: stretch;
  column-gap: 5%;
  row-gap: 30px;
  padding-bottom: 100px;
}

#contact .item {
  flex-basis: 0;
  flex-grow: 1;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

#contact footer {
  position: absolute;
  bottom: 5px;
  width: calc(100% - 200px); /* Subtract horizontal padding */
  text-align: center;
  font-size: 0.5em;
}

#contact footer p {
  margin: 0px;
  max-width: 100%;
  line-height: normal;
}

#contact .photo-credits {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact footer span {
  float: left;
  line-height: normal;
}

#contact footer ol {
  float: left;
  padding-inline-start: 0px;
  margin-block: 0.5em;
}

#contact footer li {
  float: left;
  margin: 0px 0.5em 0 1em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  #logo span {
    top: 30px;
  }

  #logo img {
    height: 80px;
    left: 80px;
  }

  #logo .text .right {
    left: 135px;
  }
  
  #hero .content {
    padding-right: 0;
    margin-bottom: 20px;
  }

  #services .container,
  #team .container,
  #contact .container {
    flex-direction: column;
    align-items: center;
  }

  #services .service,
  #team .team-member,
  #contact .item {
    min-width: 80%;
    max-width: 80%;
  }

  .contact-content {
    flex-direction: column;
  }

  .contact-image {
    padding-left: 0;
    padding-top: 20px;
  }
}