* {
  font-size: 16px;
  margin: 0px;
  padding: 0px;
}

.center {
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* Header and Navbar */
header {
  width: 100%;
  height: 5rem;
  z-index: 1000;
  position: fixed;
}

nav {
  display: flex;
  font-size: bold;
  margin-top: 2rem;
  justify-content: space-around;
  width: 100%;
}

.nav-scrolled {
  background-image: url("./assets/images/navbar-bg.png");
  background-size: cover;
}

nav > ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  padding: 0 2rem;
}

nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
}

nav a:hover {
  color: rgba(255, 255, 255, 1);
}

.dropdown-content,
.dropdown-btn {
  display: none;
}

/* Media Queries for the Header */

@media only screen and (max-width: 992px) {
  * {
    font-size: 12;
    margin: 0px;
    padding: 0px;
  }
  body {
    width: 100%;
  }
  header {
    width: 100%;
  }

  nav {
    display: inline-block;
    width: 100%;
  }
  nav a {
    margin-left: 4rem;
  }
  .dropdown-btn {
    display: block;
    color: #fff;
    float: right;
    margin-right: 2rem;
    background-color: transparent;
    border-color: transparent;
  }

  .dropdown-content {
    height: 6rem;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    font-size: 2rem;
    width: 40%;
    right: 0;
    z-index: 1000;
    position: absolute;
    margin-top: 1.6rem;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  }

  .dropdown-content li {
    padding: 0.25rem 1rem;
    width: 100%;
  }

  .dropdown-content li a {
    margin-left: 0px;
    width: 100%;
    display: inline-block;
    text-align: left;
    font-size: .8rem;
    color: #fff;
  }

  .full-size-navbar {
    display: none;
  }
}

@media only screen and (max-width: 992px) and (min-width: 522px) {
  .dropdown-content li a {
    font-size: 1.2rem;
  }
}

/* Hero Section */
section.hero {
  background: linear-gradient(
      to bottom,
      rgba(92, 77, 66, 0.8) 0%,
      rgba(92, 77, 66, 0.8) 100%
    ),
    url("../assets/images/bg-masthead.jpg");
  background-size: cover;
  background-position: center;
  height: 50rem;
}

section.hero .container {
  top: 12rem;
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: column;
}

section.hero h1 {
  color: #fff;
  text-align: center;
  font-size: 3.5rem;
  font-weight: 550;
}

section.hero hr {
  color: #f4623a;
  width: 6rem;
  margin: 1rem 0;
}

section.hero p {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 1.2rem;
  margin: 2rem 0;
}

section.hero a.about-button {
  background-color: #f4623a;
  text-decoration: none;
  text-align: center;
  color: #fff;
  border-radius: 10rem;
  font-size: 0.85rem;
  padding: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

section.hero a.about-button:hover {
  background-color: #cf5331;
}

@media only screen and (max-width: 992px) {
  section.hero h1 {
    font-size: 2rem;
  }
}

/* Services Section */

section.services {
  scroll-margin-top: 10rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-around;
  column-gap: 2rem;
  padding: 3rem 8rem;
  height: 30rem;
}

section.services article {
  border: 2px solid #000;
  border-radius: 1rem;
  width: 100%;
  height: 55%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

section.services article:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  transform: scale(1.1);
}

section.services article div {
  width: 100%;
  height: 40%;
}

section.services article div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

section.services article h2 {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.9rem;
  font-weight: 400;
}

section.services article p {
  padding: 3rem;
  font-size: 1rem;
}

section.services article:nth-child(3) p {
  padding-top: 1rem;
  padding-left: 3.3rem;
}
@media only screen and (max-width: 522px) {
  section.services {
    grid-template-columns: auto;
    padding: 4rem 8rem;
    gap: 0.5rem;
  }
  section.services article {
    height: 20rem;
    margin: 2rem 0;
    width: 20rem;
  }
  section.services article h2 {
    font-size: 2.1rem;
  }
  section.services article p {
    display: none;
  }
} 

@media only screen and (max-width: 1600px) and (min-width: 522px) {
  section.services {
    grid-template-columns:auto auto;
    gap: 4rem;
  }

  section.services article {
    width: 20rem;
    height: 25rem;
  }

  section.services article p {
    padding: 1rem;
  }
}

/* Contact Button */

section.contact-button {
  background-color: #212529;
  height: 20rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

section.contact-button h2 {
  color: #fff;
  font-size: 2rem;
  padding: 3rem;
}

section.contact-button a {
  text-decoration: none;
  color: #000;
  background-color: #fff;
  font-size: 1rem;
  border-radius: 2rem;
  padding: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 3rem;
}

section.contact-button a:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

@media only screen and (max-width: 522px) {
  section.contact-button {
    margin-top: 70rem;
  }

  section.contact-button h2 {
    text-align: center;
    font-size: 1.8rem;
  }
}

@media only screen and (max-width: 1600px) and (min-width: 522px) {
  section.contact-button {
    margin-top: 25rem;
  }
} 


/* About Section */

section.about {
  scroll-margin-top: 10rem;
  display: flex;
  justify-content: center;
  width: 70%;
  margin: 2rem 15rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  border-radius: 1rem;
  transition: transform 0.2s;
  z-index: 2;
}

section.about:hover {
  transform: scale(1.05);
}

section.about div.image-container {
  margin: 4rem;
  width: 60%;
  height: 70%;
}

section.about div.image-container img {
  border-radius: 8rem;
  width: 100%;
  height: 100%;
  margin-top: 3.5rem;
}

section.about .container {
  width: 100%;
  margin: 3rem 0;
}
section.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

section.about p {
  font-size: 1.375rem;
  box-sizing: border-box;
  text-align: left;
  padding: 2rem;
}

@media only screen and (max-width: 522px) {
  section.about {
  flex-wrap: wrap-reverse;
  margin: 1rem;
  width: 90%;
  }

  section.about .container {
    margin-bottom: 0;
  }
  section.about .container h2 {
    font-size: 2.5rem;
  }
  section.about .container p {
    font-size: 1rem;
    padding: 1rem;
  }

  section.about div.image-container {
    width: 60%;
    height: 70%;
    margin: 2rem;
    margin-top: 0;
  }
}

@media only screen and (max-width: 1600px) and (min-width: 522px) {
  section.about {
  flex-wrap: wrap-reverse;
  margin: 2.5rem;
  width: 90%;
  }

  section.about .container {
    margin-bottom: 0;
  }
  section.about .container h2 {
    font-size: 2.5rem;
  }
  section.about .container p {
    font-size: 1.2rem;
    padding: 1rem;
  }

  section.about div.image-container {
    width: 40%;
    height: 50%;
    margin: 2rem;
    margin-top: 0;
  }
}



/* Contact Section */

section.contact {
  display: flex;
  width: 100%;
  height: 40rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  width: 70%;
  margin: 2rem 15rem;
  border-radius: 1rem;
  font-family: "Poppins", Arial, sans-serif;
}

section.contact:hover {
  transform: scale(1.05);
}
.container-right {
  background-color: #212529;
  color: #fff;
  display: flex;
  width: 70%;
}

.container-right ul {
  text-align: center;
  margin-top: 12rem;
}

.container-right li {
  list-style-type: none;
  display: flex;
  justify-content: start;
  align-items: center;
  padding-left: 3rem;
}

.container-right li p {
  font-weight: bold;
  font-size: 1.3rem;
  padding-left: 0.5rem;
}
/* All Icons on same width  */
.container-right span {
  border: 1px solid #fff;
  border-radius: 4rem;
  padding: 1rem;
  margin: 0.5rem;
}

.form {
  margin: 2rem 6rem;
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 1.5rem;
}

.form form {
  width: 60%;
}

.form h2 {
  margin: 2rem 0;
  font-size: 2rem;
}

.form .container {
  display: flex;
  flex-direction: row;
}

.form > form:nth-child(1) > div:nth-child(2) > div:nth-child(1) {
  margin-right: 4rem;
}

.form div {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}

.form label {
  font-weight: bold;
  font-size: 1rem;
  margin: auto 0;
  width: 100%;
}

.form input {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 1rem 0;
  font-size: 1rem;
  text-align: start;
}

.form textarea {
  border: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
}

.form #submit {
  background-color: #212529;
  color: #fff;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4rem;
  width: 50%;
  margin-left: 8rem;
  text-align: center;
}

@media only screen and (max-width: 1600px) {
  section.contact {
    flex-direction: column-reverse;
    height: 100%;
    margin: 1rem;
    width: 90%;
  }

  .form {
    margin: 0;
    align-items: center;
  }

  .form .container {
    flex-direction: column;
  }

  .form h2 {
    font-size: 1.7rem;
  }

 .form #submit {
    font-size: 1rem;
    margin:0;
    width: 100%;
  }
  
  .container-right {
    font-size: 1rem;
    width: 100%;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
  }

  .container-right ul {
    margin: 2rem 0;
  }

  .container-right li {
    padding-left: 1rem;
  }

  .container-right li p {
    font-size: .9rem;
  }
}

@media only screen and (max-width: 1600px) and (min-width: 522px) { 
  .container-right li p {
    font-size: 1.5rem;
  }
} 
/* Footer */

footer {
  background-color: #212529;
  color: #fff;
  font-weight: bold;
  height: 6rem;
  display: flex;
  justify-content: center;
}

footer div.container {
  padding: 2.5rem;
}

@media only screen and (max-width: 992px) {
  footer span {
    font-size: .8rem;
  }
}
