* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.header {
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 31, 0.43), rgba(4, 9, 31, 0.43)),
    url(images/background_image.png);
  background-position: center;
  background-size: cover;
  position: relative;
}

.logo-link {
  margin-left: 0.5rem;
  padding-top: 0.5rem;
  margin-bottom: -0.6rem;
}

/* Styling for the dropdown container */
.language-dropdown {
  position: absolute;
  top: 10px;
  right: 10px; 
  z-index: 1;
}

/* Styling for the dropdown select element */
#language-select {
  padding: 2px;
  background-color: #f5f5f5;
  border: 2px solid #5c4033;
  border-radius: 10px;
  font-size: 15.5px;
  cursor: pointer;
}

/* Styling for the dropdown options */ 
#language-select option {
  background-color: #fff;
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav img {
  width: 150px;
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

.nav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.nav-links ul li::after {
  content: "";
  width: 0px;
  height: 2px;
  background: #5c4033;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.nav-links ul li:hover::after {
  width: 100%;
}

.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: 62px;
}

.text-box p {
  margin: 10px 0 40px;
  font-size: 14px;
  color: #fff;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.hero-btn:hover {
  border: 1px solid #fff;
  background: #5c4033;
  transition: 1s;
}

nav .fa-solid {
  display: none;
}

/* Class to disable scrolling */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

@media (max-width: 722px) {
  .text-box h1 {
    font-size: 20px;
  }

  .nav-links ul li {
    display: block;
  }

  .nav-links {
    position: fixed;
    background: #5c4033;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 1s;
  }

  nav .fa-solid {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }

  .nav-links ul {
    padding: 30px;
  }

  .nav-links.open {
    right: 0;
  }
}

.services {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

p {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.services-col {
  flex-basis: 31%;
  background: #d3d3d3;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: 0.5s;
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

.services-col:hover {
  box-shadow: 0 0 42px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }
}

/*------ Construction and Renovation Portfolio  -----*/
.portfolio-section {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}

.portfolio-section-col {
  flex-basis: 32%;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.portfolio-section-col img {
  width: 100%;
  display: block;
}

.layer {
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
}

.layer:hover {
  background: rgba(58.8, 29.4, 0, 0.7);
}

.layer h3 {
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}

.layer:hover h3 {
  bottom: 49%;
  opacity: 1;
}

/*------------------ Testimonials ----------------*/
.testimonials {
  width: 80%;
  margin: auto;
  padding-top: 100px;
  text-align: center;
}

.testimonials-col {
  flex-basis: 44%;
  border-radius: 10px;
  margin-bottom: 5%;
  margin-right: 1%;
  text-align: left;
  background: #c4a484;
  padding: 25px;
  cursor: pointer;
  display: flex;
}

.testimonials-col img {
  height: 40px;
  margin-left: 5px;
  margin-right: 30px;
  border-radius: 50%;
}

.testimonials-col p {
  padding: 0;
}

.testimonials-col h3 {
  margin-top: 15px;
  text-align: left;
}

.testimonials-col .fa {
  color: #5c4033;
}

@media (max-width: 700px) {
  .testimonials-col img {
    margin-left: 0px;
    margin-right: 15px;
  }
}

.contact {
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(images/banner.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
}

.contact h1 {
  color: #fff;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 700px) {
  .contact h1 {
    font-size: 24px;
  }
}

/*------------------ Footer ----------------*/
.footer {
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

.footer h4 {
  margin-bottom: 25px;
  margin-top: 20px;
  font-weight: 600;
}

.icons .fa {
  color: #5c4033;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
}

.fa-html5 {
  color: #5c4033;
}

/*------------------ Services page ----------------*/
.sub-header-services {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(37, 39, 49, 0.7),
      rgba(37, 39, 49, 0.7)),
    url(images/services.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.sub-header-services h1 {
    margin-top: 4rem;
   display: flex;
  justify-content: center;
  align-items: center;
}

.sub-header-achievements {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(37, 39, 49, 0.7),
      rgba(37, 39, 49, 0.7)),
    url(images/achievements.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.sub-header-achievements h1 {
    margin-top: 4rem;
    display: flex;
  justify-content: center;
  align-items: center;
}

.sub-header-about {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(37, 39, 49, 0.7),
      rgba(37, 39, 49, 0.7)),
    url(images/about.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.sub-header-about h1 {
    margin-top: 4rem;
    display: flex;
  justify-content: center;
  align-items: center;
}

.about-us {
  width: 80%;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 50px;
}

.about-col {
  padding: 30px 2px;
  margin-top: -5rem;
}

.about-col img {
  width: 100%;
}

.about-col h1 {
  padding-top: 0;
}

.about-col p {
  padding: 15px 0 25px;
}

.about-col-portfolio p {
margin-top: -6rem;
}

.red-btn {
  border: 1px solid #5c4033;
  background: transparent;
  color: #5c4033;
}

.red-btn:hover {
  color: #fff;
}

.sub-header-contact {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(37, 39, 49, 0.7),
      rgba(37, 39, 49, 0.7)),
   url(images/contact.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.sub-header-contact h1 {
    margin-top: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*------------------ Contact us ----------------*/
.location {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}

.location iframe {
  width: 100%;
}

.contact-us {
  width: 80%;
  margin: auto;
}

.contact-col {
  flex-basis: 48%;
  margin-bottom: 30px;
}

.contact-col div {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.contact-col div .fa {
  font-size: 28px;
  color: #5c4033;
  margin: 10px;
  margin-right: 30px;
}

.contact-col div p {
  padding: 0;
  margin-left: 10px;
}

.contact-col div h5 {
  font-size: 20px;
  margin-bottom: 5px;
  margin-left: 10px;
  color: #555;
  font-weight: 400;
}

.contact-col input, .contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  border: 1px solid #555;
  box-sizing: border-box;
}

.contact-us .row .contact-col:nth-child(2) p {
  color: red;
  padding-left: 0px;
  font-weight: 600;
  font-size: 0.73rem;
}

/*------------- PORTFOLIO -----------------*/
.sub-header-portfolio {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(37, 39, 49, 0.7),
      rgba(37, 39, 49, 0.7)),
    url(images/portfolio.png);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.sub-header-portfolio h1 {
  margin-top: 4rem;
    display: flex;
  justify-content: center;
  align-items: center;
}


/*------------- Menu for the Portfolio Photos -----------------*/

.slideshow-container {
  max-width: 830px;
  height: 35rem;
  position: relative;
  margin: auto;
  border: 4px solid #5c4033;
  overflow: hidden;
}

.mySlides {
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 3%;
  margin-top: -5%;
  color: rgb(250, 248, 248);
  font-weight: bold;
  font-size: 30px;
  transition: 0.7s ease;
  border-radius: 3px 0 0 3px;
  user-select: none;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(78, 77, 77, 0.8);
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* ------------------ Styles for the Navigation bar -------------- */
.language-selector {
  float: right;
  margin-top: 20px;
}

#language-dropdown {
  font-size: 16px;
  border: none;
  background-color: transparent;
  color: #fff;
}

@media (min-width: 1300px) {
  .about-col {
  max-width: 70rem;
  }
}


@media (max-width: 700px) {
  .sub-header-about,
  .sub-header-portfolio {
    height: 40vh; 
    background-attachment: scroll; 
    background-size: 100% 100%; 
  }
  
  .sub-header-about h1,
  .sub-header-portfolio h1,
  .sub-header-services h1,
  .sub-header-achievements h1,
  .sub-header-contact h1 {
    font-size: 24px; 
  }
}

.slideshow-container {
  max-width: 830px;
  width: 90%; 
  height: auto; 
  position: relative;
  margin: auto;
  border: 4px solid #5c4033;
  overflow: hidden;
}

.mySlides {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mySlides img {
  width: 100%;
  height: auto;
  max-height: 35rem; 
  object-fit: contain; 
  display: block;
}

@media (max-width: 700px) {
  .slideshow-container {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  
  .prev, .next {
    padding: 10px;
    font-size: 20px;
  }
  
  .portfolio-section h1 {
    font-size: 24px;
  }
}

@media (min-width: 700px) {
  .sub-header-portfolio {
    height: 40vh; 
    background-attachment: scroll; 
    background-size: 100% 100%; 
  }
}


@media (min-width: 1400px) {
  .sub-header-portfolio {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(37, 39, 49, 0.7),
      rgba(37, 39, 49, 0.7)),
    url(images/portfolio.png);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}
}