body {
  background-color: whitesmoke;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6em;
  margin: 0;
}

h1 {
  font-size: 30px;
  font-weight: 700;
}

p {
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

#main-header {
  background-color: darkgoldenrod;
  color: white;
  position: fixed;
  width: 100%;
}

#navbar {
  background-color: black;
  color: white;
  position: fixed;
  top: 60px;
  width: 100%;
  transition: top 2s;
}

#navbar ul {
  padding: 0;
  list-style: none;
}

#navbar li {
  display: inline;
}

#navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding-right: 15px;
}

#showcase-home {
  background-image: url(../images/home-img.jpg);
  background-position: center;
  width: 100%;
  height: 500px;
  margin-bottom: 30px;
}

#showcase-services {
  background-image: url(../images/services-img.jpg);
  background-position: center;
  width: 100%;
  height: 500px;
  margin-bottom: 30px;
}

#showcase-contact {
  background-image: url(../images/contact-img.jpg);

  width: 100%;
  height: 500px;
  margin-bottom: 30px;
}

#showcase-work {
  background-image: url(../images/work-img.jpg);
  width: 100%;
  height: 500px;
  margin-bottom: 30px;
}

#main {
  width: 100%;
  padding: 0 30px;
  box-sizing: border-box;
  height: 40vh;
}

#main h1,
p {
  font-size: 25px;
  line-height: 1.6em;
  padding-top: 30px;
  text-align: center;
}

#main-footer {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* SERVICES PAGE */
.services {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  text-align: center;
}

.services .service {
  padding: 30px;
  background-color: darkgoldenrod;
}

.services .service:hover {
  box-shadow: 0px 1px 19px 13px #000000;
}

.services .service h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
}

.services .service .icon img {
  max-width: 100px;
}

/* WORK PAGE */
.portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.portfolio .item {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 5px;
}

.portfolio .item img {
  width: 100%;
  height: 100%;
}

.portfolio .item .action {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(218, 165, 32, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.5s;
}

.portfolio .item:hover .action {
  opacity: 1;
}

.portfolio .item .action a {
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 1px solid white;
  padding: 5px 15px;
}

/* CONTACT */

.contact-container {
  position: relative;
  width: 50%;
  margin-top: 50px;
  
  justify-content: center;
  margin-left: 25%;
}

.input-first {
  width: 100%;
  padding: 15px;
  margin: 0 0 10px 0;
}

.input-last {
  width: 100%;
  padding: 15px;
  margin: 0 0 10px 0;
}

.input-subject {
  width: 100%;
  padding: 15px;
  margin: 0 0 10px 0;
}

.input-textarea {
  width: 100%;
  padding: 15px;
  margin: 0 0 10px 0;
}

.submit-btn {
  display: block;
  padding: 15px;
  width: 50%;
  margin-left:  30%; 
  
}

.contact-info {
  width: 100%;
  padding: 20px;
  margin-top: 5%;
  display: flex;
  justify-content: center;
}

.location {
  
  padding-right: 20px;
}
.location img {
  width: 20px;
}

.phone img {
  width: 20px;
}

.email {
  padding-left: 20px;
}
.email img {
  width: 20px;
}

@media (max-width: 768px) {
  #main {
    width: 100%;
    float: none;
  }

  .contact-info {
  width: auto;
  display: block; 

  }

  .services {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }  

}
