* {
  box-sizing: border-box;
}

:root {
  /*Light Grey Colors*/
  --light-grey-01: #dadada;
  --light-grey-02: #cdcdcd;
  --light-grey-03: #c0c0c0;
  --light-grey-04: #b4b4b4;
  --light-grey-05: #a7a7a7;
  --light-grey-06: #929292;
  --light-grey-07: #585858;
  --light-grey-08: #3d3d3d;
  /*Olive Green Colors*/
  --olive-green-01: #96b85d;
  --olive-green-02: #7c9d45;
  --olive-green-03: #6e8b3d;
  --olive-green-04: #52682d;
  --olive-green-05: #445626;
  --olive-green-06: #bfe67d80;
  /*Text Colors*/
  --text-light-grey: var(--light-grey-04);
  --text-white: #e7e7e7;
  --text-olive: var(--olive-green-01);
  --text-black-01: #181818;
  --text-black-02: #1b1a1a;
  --text-black-03: #2c2c2c;
}
/*Text Effects*/
.shadow-white-full {
  text-shadow: 4px 4px 2px rgba(255, 255, 255, 0.8);
}
.shadow-white-half {
  text-shadow: 4px 4px 2px rgba(255, 255, 255, 0.5);
}
.shadow {
  text-shadow: 2px 0 10px rgb(0, 0, 0), 1px 1px 2px rgb(0, 0, 0);
}
a {
  text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--light-grey-01);
  font-family: Arial, Helvetica, sans-serif;
}

#main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-grey-08);
  color: var(--text-white);
  position: relative;
  z-index: 5;
}

#logo img {
  max-width: 150px;
  filter: brightness(0) saturate(100%) invert(96%) sepia(96%) saturate(0%)
    hue-rotate(138deg) brightness(105%) contrast(105%);
  margin: 0.5rem;
}

.nav-list ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-list li {
  list-style: none;
  font-size: 1.125rem;
}

.nav-list li a {
  text-decoration: none;
  color: var(--text-white);
  padding: 1.8rem;
  display: block;
}
.nav-list li a:hover {
  background-color: var(--light-grey-01);
  color: var(--light-grey-08);
}

.toggle-button {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 31px;
  height: 21px;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/*Main Hero section*/

#main-hero {
  background-color: var(--light-grey-02);
  background-image: url("images/hero.jpg");
  filter: saturate(200%);
  background-size: cover;
  background-position: center;
  padding-top: 400px;
  padding-bottom: 300px;
  z-index: 0;
  height: 95vh;
}
/*Main Page*/

#main-hero h1 {
  text-align: center;
  font-size: 3em;
  line-height: 1.35;
  color: var(--text-white);
  max-width: 1050px;
  margin: 0 auto;
}

#summary,
#about h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}
#summary {
  display: grid;
  grid-template-columns: 2fr 1fr;
}
.summary-button {
  align-content: center;
  display: grid;
  grid-template-columns: 1fr;
}
.summary-button .button {
  font-size: 2rem;
  padding: 1.5rem;
  margin: 1.5rem;
  max-width: 50%;
  text-align: center;
}
.bullet-point {
  font-size: 3.5rem;
  line-height: 0.7;
  font-weight: 700;
  justify-content: start;
  gap: 10rem;
  margin-left: 10rem;
  color: var(--text-black-03);
}
.bullet-point p {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
#about {
  display: grid;
  margin-top: 3rem;
  text-align: center;
}
#about p {
  min-width: 300px;
  max-width: 1200px;
  font-size: 1.125em;
  padding: 0.5rem;
  margin-left: 2rem;
  margin-right: 2rem;
  margin-bottom: 3.5rem;
  margin-top: 0;
  text-align: center;
  justify-self: center;
}
.card-wrapper {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-items: center;
}
.card {
  font-size: 1.2rem;
  width: 350px;
  margin: 2rem;
  padding: 0.5rem;
  background-color: #ffffffb6;
  box-shadow: rgba(0, 0, 0, 0.158) 0px 5px 15px;
  border-radius: 15px;
  text-align: center;
}

.card img {
  width: 250px;
  border-radius: 5px;
}

/*References and references cards*/
.reference-card {
  position: relative;
  text-align: center;
}
.reference-card img {
  max-height: 400px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
.image-card-text {
  width: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.button {
  font-size: 1.3rem;
  background-color: var(--olive-green-03);
  border-radius: 6px;
  padding: 1rem;
  color: var(--light-grey-01);
}
.button:hover {
  background-color: var(--olive-green-05);
  opacity: 0.9;
  transform: translate(2px, 2px);
}

/*Footer*/

footer {
  background-color: var(--light-grey-08);
  color: white;
  text-align: center;
  padding: 1rem;
}

/*Universal classes*/

.text-xxl {
  font-size: 5rem;
}
.text-xl {
  font-size: 4rem;
}
.text-l {
  font-size: 3rem;
}

/*Paralax divs from About section*/

.paralax {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /*
  fixed = parallax
  scroll = normal
  */
  background-attachment: fixed;
}

.paralax-img-1 {
  background-image: url("images/construction-site-1.jpg");
  min-height: 400px;
}
.paralax-img-2 {
  background-image: url("images/construction-site-2.jpg");
  min-height: 400px;
}
.paralax-img-text {
  font-size: 4rem;
  color: rgb(255, 255, 255);
  position: relative;
  top: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  opacity: 1;
}
.paralax-img-text a {
  text-decoration: none;
  color: white;
}

/*Services*/
.services {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.services-tab {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.column {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.5rem;
}
.services-tab:nth-child(odd) {
  background-color: var(--light-grey-02);
}
.column-left {
  /* max-width: 700px; */
  max-width: 40%;
}
.column-right {
  /* max-width: 400px; */
  max-width: 25%;
}
.services-tab p {
  font-size: 3rem;
}

.services-img {
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
    rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}
.services-img:hover {
  opacity: 0.5;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Table */
th:hover {
  cursor: pointer;
}

#main-table {
  border-collapse: collapse;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  margin-top: 2rem;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#main-table td,
#main-table th {
  border: 1px solid #ffffff;
  padding: 0.6rem;
}

#main-table tr {
  background-color: var(--light-grey-03);
  color: var(--light-grey-08);
  font-size: 1.1rem;
}

#main-table tr:hover {
  background-color: var(--olive-green-01);
  color: white;
}

#main-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: var(--olive-green-03);
  color: white;
}

#table-search {
  background-image: url("/css/searchicon.png"); /* Add a search icon to input */
  background-position: 10px 12px; /* Position the search icon */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  width: 100%; /* Full-width */
  font-size: 16px; /* Increase font-size */
  padding: 12px 20px 12px 40px; /* Add some padding */
  border: 1px solid #ddd; /* Add a grey border */
}

#main-table a {
  text-decoration: none;
  color: var(--light-grey-07);
}
#main-table a:visited {
  color: var(--light-grey-07);
}
#main-table a:hover {
  color: var(--text-white);
}

.center {
  text-align: center;
}

@media screen and (max-width: 770px) {
  .toggle-button {
    display: flex;
  }
  .nav-list {
    display: none;
    width: 100%;
  }

  #main-navigation {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-list li {
    text-align: center;
  }
  .nav-list li a {
    padding: 0.5rem 1rem;
  }

  .nav-list.active {
    display: flex;
  }

  #logo img {
    max-width: 120px;
  }

  #main-hero h1 {
    font-size: 1.6rem;
    padding: 1rem;
    line-height: 1.7;
  }

  #summary {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .bullet-point {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    margin-left: 1rem;
  }
  .summary-button .button {
    font-size: 1rem;
    padding: 1rem;
    margin: 1rem;
    max-width: 100%;
    text-align: center;
  }

  .scroll-container {
    display: flex;
    flex-direction: column;
  }

  .services-tab p {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 830px) {
  .card-wrapper {
    grid-template-columns: auto;
  }
  .paralax-img-text {
    font-size: 1.5rem;
    top: 9rem;
    display: flex;
    gap: 5rem;
  }
  .paralax {
    background-attachment: scroll;
  }

  .scroll-container {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 1210px) {
  .card-wrapper {
    grid-template-columns: auto auto;
  }
  .paralax-img-text {
    font-size: 2rem;
    top: 8rem;
    display: flex;
    gap: 5rem;
  }
}

@media screen and (max-width: 610px) {
  .paralax-img-text {
    font-size: 1.8rem;
  }
}
