html {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 100%;
  --bg-color: rgb(238, 238, 238);
  --bg-fade-stop: rgba(238, 238, 238, 0);
  --bg-fade: rgba(238, 238, 238, 255);
  --hero-color: white;
  color: black;
  --highlight: black;
}

body {
  margin: 0;
  background-color: var(--bg-color);
}

nav,
footer {
  display: flex;
  background-color: var(--bg-color);
  justify-content: center;
}
nav {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1;
  box-shadow: 0px 2px 0 0 var(--highlight);
}
nav > div,
footer > div {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .title,
nav .nav a {
  margin: 1rem;
  font-size: 1.2rem;
}
a {
  color: inherit;
  padding: 0.5rem 0.3rem;
  font-weight: bold;
}
nav .nav a {
  font-weight: normal;
  text-decoration: none;
  border: 1px solid var(--bg-color);
  box-shadow: 0px 0px 0 0 var(--highlight);
  transition: all 200ms ease-in-out;
}
nav .nav a:hover {
  border: 1px solid var(--highlight);
  box-shadow: 2px 2px 0 0 var(--highlight);
}
section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}
section:not(#hero) {
  width: calc(100% - 2rem);
  margin: 1rem;
}
section div.section {
  width: 100%;
  max-width: 1000px;
  font-size: 1.3rem;
}

.center {
  text-align: center;
}

#hero {
  position: relative;
}

.heroImg {
  background-image: url("/assets/hero.webp");
  height: 100vh;
  background-size: cover;
  background-position: center;
  width: 100vw;
  display: block;
}
.heroImg:before {
  content: "";
  background-image: linear-gradient(
    to top,
    var(--bg-fade),
    var(--bg-fade-stop)
  );
  position: absolute;
  height: 100px;
  right: 0;
  bottom: 0;
  left: 0;
}

.heroText {
  color: var(--hero-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  text-shadow: 0 0 2px var(--highlight);
  /* -webkit-text-stroke: 1px rgb(123, 123, 123); */
}
#hero .title h1 {
  margin: 0;
  font-size: 1.5em;
  margin-block: 0;
}
:where(h1) {
  margin-block: 0.67em;
  font-size: 2em;
}
.heroText .small {
  font-size: 1.7rem;
}

#work .images,
#testimonies .reviews {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
}
#work .images .image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 600px;
  margin: 0.5rem;
  box-shadow: 2px 2px 0 2px var(--highlight);
  transition: all 0.3s ease-in-out;
  left: 0rem;
}
#work .images .image:nth-child(3n - 2) {
  left: 0;
  right: 0rem;
}

#work .images img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease-in-out;
}
span.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.gallery img {
  object-fit: cover;
  width: 10%;
  height: 10%;
  flex: 40%;
  margin: 10px;
  box-shadow: 0px 0px 0 2px var(--highlight);
}
#work .images .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: var(--bg-color);
  opacity: 0.3;
  height: 2.5rem;
  padding-top: 1rem;
  transition: all 0.3s ease-in-out;
}
#work .images .image:hover {
  transform: scale(1.03);
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0px 0px 0 2px var(--highlight);
}
#work .images .image:hover img {
  transform: scale(1.04);
}
#work .images .image:hover .text {
  opacity: 1;
}

#testimonies .reviews .review {
  display: flex;
  justify-content: center;
  align-items: start;
  margin: 1rem;
  box-shadow: 0px 0px 0 0 var(--highlight);
  transition: all 0.3s ease-in-out;
  margin-right: 150px;
}
#testimonies .reviews .review:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: 150px;
  margin-right: 0;
}

#testimonies .reviews .review img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 1rem;
}
#testimonies .reviews .review img,
iframe {
  border-radius: 20px;
  box-shadow: 2px 2px 0 2px var(--highlight);
}

#testimonies .reviews .review .text {
  display: flex;
  flex-direction: column;
}
#contact .contactInfo {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}
#contact .contactInfo span {
  width: 100%;
  max-width: 400px;
  margin: 1rem;
}

.fa-brands {
  margin: 0px 10px;
}

footer {
  position: relative;
  padding: 1rem;
}
footer div {
  justify-content: flex-end;
}

footer div.socials {
  display: flex;
}

footer div.socials h4 {
  margin: 1rem;
}
footer div.socials span {
  display: flex;
  flex-direction: column;
  margin: 0.5rem;
}
footer #copyright {
  font-size: 0.7rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin-bottom: 5px;
}

@media screen and (max-width: 900px) {
  #work .images {
    flex-direction: column;
  }
  .gallery img {
    flex: 100%;
  }
}

@media screen and (max-width: 760px) {
  nav .nav {
    display: none;
  }
  .heroText {
    font-size: 2.3rem;
  }
  nav .title {
    width: 100%;
    text-align: center;
  }

  #work .images .image {
    max-width: 300px;
  }
  #testimonies .reviews .review,
  #testimonies .reviews .review:nth-child(even) {
    flex-direction: row;
    margin: 0.5rem;
  }
  iframe {
    width: 100%;
  }
}

@media screen and (prefers-color-scheme: dark) {
  body {
    --bg-color: rgb(12, 12, 12);
    --bg-fade-stop: rgba(12, 12, 12, 0);
    --bg-fade: rgba(12, 12, 12, 255);
    --hero-color: black;
    color: white;
    --highlight: white;
  }
}
