body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  background: url('../img/header-image.jpg') no-repeat center center/cover;
  color: white;
  padding: 80px 20px;
  text-align: center;
  height: auto;
  background-size: cover;
  background-position: center center;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: normal;
}

h2,
h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: bold;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(0, 0, 0, 1);
  text-align: left;
}

h2 {
  font-size: 48px;
}

section {
  display: flex;
  padding: 40px 0px;
  margin: 0;
}

section div {
  padding-left: 4rem;
}

.about {
  padding-left: 20rem;
  padding-right: 20rem;
}

.about p {
  font-size: 20px;
}

.text {
  padding-left: 20rem;
  padding-right: 20rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(17, 26, 11, 1);
}

.text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.split-section img {
  max-width: 50%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.text {
  flex: 1;
  padding: 20px;
  font-size: 20px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* padding-left: 4rem; */
  margin: 0;
}

.contact .buttons {
  flex: 1;
  padding: 20px;
}

.contact img {
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.logo {
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: center;
}

footer {
  background: #333;
  color: white;
  padding: 15px;
  text-align: right;
  font-size: small;
}

footer a {
  color: gray;
  margin-left: 15px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.center-elements {
  display: flex;
  justify-content: center;
}

.credits {
  font-size: small;
  margin-top: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.capital {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(17, 26, 11, 1);
  margin: 0.5em 0px;
}

.montserrat {
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.link-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 0;
  border: 2px solid black;
  border-radius: 8px;
  color: black;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

ul {
  padding-left: 0;
}

li {
  list-style-type: none;
}

.link-button:hover {
  background-color: black;
  color: white;
}

h4 {
  font-size: 1.4rem;
}

/* Media Queries for Responsiveness */

@media (max-width: 1024px) {
  header {
    padding: 60px 20px;
    background-size: cover;
    background-position: center center;
  }

  header h1 {
    font-size: 2em;
  }

  .about {
    padding-left: 5rem;
    padding-right: 5rem;
    font-size: 16px;
  }

  .split-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .split-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .split-section .text {
    padding: 0;
    font-size: 18px;
    width: 100%;
    text-align: left;
  }

  .contact {
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact .buttons {
    padding: 10px;
  }

  .contact img,
  .split-section img {
    max-width: 100%;
    margin-top: 20px;
  }

  .contact h4 {
    font-size: 1.4rem;
  }

  .contact p {
    font-size: 12px;
  }

  .contact ul li {
    font-size: 12px;
  }

  .link-button {
    font-size: 14px;
  }

  footer {
    text-align: right;
    font-size: 14px;
  }

  .logo img {
    width: 100%;
    max-width: 400px;
  }

  .capital {
    font-size: 14px;
    margin: 1em 0;
  }

  h2 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.2rem;
  }
}

header h1 {
  font-size: 72px;
  font-weight: 100;
  text-transform: none;
  line-height: 1.3;
  letter-spacing: normal;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  header {
    padding: 100px 20px;
    background-size: cover;
    background-position: -100px top;
  }

  header > h1 {
    font-size: 3rem;
    margin-top: 4rem;
  }

  .about {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 14px;
  }

  .split-section {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .split-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .split-section .text {
    padding: 0;
    font-size: 16px;
    width: 100%;
    text-align: left;
  }

  .contact {
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact .buttons {
    padding: 10px;
  }

  .contact img,
  .split-section img {
    max-width: 100%;
    margin-top: 20px;
  }

  .contact h4 {
    font-size: 1.4rem;
  }

  .contact p {
    font-size: 12px;
  }

  .contact ul li {
    font-size: 12px;
  }

  .link-button {
    font-size: 14px;
  }

  footer {
    display: flex;
    justify-content: center;
    font-size: 12px;
    padding: 10px;
    color: #333;
  }

  .link-button {
    font-size: 14px;
  }

  .credits {
    font-size: 12px;
    margin-top: 0;
  }

  h2 {
    font-size: 48px; /* 48px on small screens */
  }

  h4 {
    font-size: 1.2rem;
  }

  section {
    padding: 0;
  }

  .logo {
    margin: 0;
    padding: 0;
  }

  .logo img,
  .capital,
  .credits {
    margin: 0;
    padding: 0;
  }
}

@supports (-webkit-touch-callout: none) {
  .contact {
    padding-left: 2rem; /* Adjust for Safari */
    padding-right: 2rem;
  }

  .contact img {
    width: auto; /* Ensure auto-scaling */
  }

  .split-section img {
    width: auto;
  }
}

header {
  position: relative;
  color: white;
  padding: 60px 20px;
  text-align: center;
  height: 100vh;
  overflow: hidden;
}

main {
  position: relative;
  z-index: 2;
}

section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

section img {
  max-width: 100%;
  height: auto;
  width: 50%;
}

section .text {
  width: 45%;
}

section .text p {
  font-size: 16px;
  line-height: 1.6;
}

.center-elements {
  text-align: left;
  margin: 20px 0;
}

.link-button {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 20px;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  text-align: left;
}

footer a {
  margin: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  section {
    flex-direction: column;
    text-align: left;
    margin: 10px;
    padding-top: -1rem;
  }

  section img {
    width: 100%;
    margin-bottom: 20px;
  }

  section .text {
    width: 100%;
  }
}

.industry,
.infrastructure,
.contact {
  margin: 0 7rem;
}
