/* base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  font-family: Arial, Helvetica, sans-serif;
}
body.show {
  overflow: hidden;
}
p {
  padding: 15px 0 10px;
  font-size: 1.1rem;
}
img {
  width: 100%;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
  text-transform: capitalize;
  font-size: 1.5rem;
  color: #000;
}
.wrapper {
  width: 90%;
  margin: 1rem auto;
}

/* header */
header {
  position: relative;
}
header h1 {
  font-weight: 800;
  padding: 1rem 5%;
}
header #navigation {
  z-index: 10;
  display: none;
  background-color: #fff;
}
header #navigation.show {
  display: block;
}
#menu {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ec0c0c;
  padding: 1rem;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}
/* navbar */
#navbar ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
}
#navbar ul li a:hover {
  color: #ec0c0c;
}
/* icons */
div.icons {
  position: absolute;
  left: 1rem;
  top: 40%;
  height: 60%;
  transform: scale(0.8);
}
div.icons .fa-at {
  position: absolute;
  bottom: 2rem;
}
/* hero */
main.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-content: center;
  padding-left: 5%;
}
main .hero-inner {
  padding: 5rem 1rem;
}
main p {
  max-width: 600px;
}
.btn {
  background-color: #ec0c0c;
  color: #fff;
  padding: 10px;
  font-size: 1.3rem;
  display: inline-block;
  transition: all 300ms ease;
}
.btn:hover {
  opacity: 0.7;
  transform: scale(0.98);
}
.image-container img {
  margin-top: -100px;
  height: 645px;
}

/* SERVICES */
.boxes {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}
.boxes i {
  color: lightgray;
}
.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
}
.box:hover {
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1),
    -10px -10px 30px rgba(0, 0, 0, 0.1);
}
/* WORK */
.work-hero .items-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.work-hero .items-container .items {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 5px;
}
.work-hero .items-container .items img {
  width: 100%;
  height: 100%;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 300ms ease;
}
.overlay a {
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 10px;
}
.work-hero .items-container .items:hover .overlay {
  opacity: 1;
}
/* CONTACT */
.work-hero {
  margin-top: 2rem;
}
article {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
  justify-content: space-between;
  align-items: center;
}
form,
.contacts {
  background-color: lightgray;
}
form {
  padding: 1rem;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
}
form input {
  outline: 0;
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
}
form textarea {
  resize: none;
  grid-column: 1/3;
  outline: 0;
  width: 100%;
  padding: 10px;
  height: 100px;
}
form .btn {
  display: block;
  text-align: center;
  padding: 5px;
  grid-column: 1/3;

  background-color: #000;
}
.contacts {
  padding: 1rem;
}
.contacts p {
  padding: 1rem 2rem;
}
.contacts i {
  margin-right: 1rem;
}
/* media queries */
@media (max-width: 1068px) {
  main.hero {
    grid-template-columns: 1fr;
  }
  .image-container {
    display: none;
  }
}
@media (max-width: 700px) {
  .boxes .box {
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1),
      -10px -10px 30px rgba(0, 0, 0, 0.1);
  }
  article {
    grid-template-columns: 1fr;
  }
  form input {
    grid-column: 1/3;
  }
}
