* {
  margin: 0;
  padding: 0;
}

header {
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(3, 16, 44, 0.7), rgba(3, 16, 44, 0.7)),
  url('../images/bg.jpg');
  background-position: center;
  background-size: cover;
  position: relative;
}

.text-box {
  width: 100%;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: 40px;
}

.text-box p {
  margin: 20px;
  font-size: 15px;
  color: white;
  line-height: 20px;
}

.visit-btn {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 1px solid white;
  padding: 15px 30px;
  font-size: 13px;
  background-color: transparent;
  position: relative;
  cursor: pointer;
}

.visit-btn:hover {
  border: 1px solid #0387bb;
  background: #0387bb;
  transition: 1s;
}

/* responsive */
@media (max-width: 700px) {
  .text-box h1 {
    font-size: 16px;
  }

  .text-box p {
    margin: 10px;
    font-size: 10px;
    color: white;
    line-height: 15px;
  } 
}

/* intro section */

.intro {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
  margin-bottom: 10%;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

p {
  color: gray;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}

.sec-1 {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.col-1 {
  flex-basis: 30%;
  background: #faf3f3;
  border-radius: 20px;
  margin-bottom: 20px;
  padding: 15px;
  box-sizing: border-box;
}

h3 {
  text-align: center;
  margin: 10px;
}

.col-1:hover {
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
  transition: 0.5s;
}

@media (max-width: 700px) {
  .sec-1, .sec-2, .sec-3 {
    flex-direction: column;
  }
}

/* services section */

.services {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
  margin-bottom: 10%;  
}

.sec-2 {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.col-2 {
  flex-basis: 30%;
  border-radius: 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.col-2 img {
  width: 100%;
  display: block;
}

.layer {
  color: red;
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.layer:hover {
  background: rgba(0, 110, 255, 0.4);
}

.layer h3 {
  width: 100%;
  font-weight: 500;
  color: white;
  font-size: 22px;
  bottom: 0;
  left: 47%;
  transform: translate(-50%);
  position: absolute;
  transition: 0.5s;
}

.layer:hover h3 {
  bottom: 49%;
  opacity: 1;
}

/* feature section */

.feature {
  width: 90%;
  margin: auto;
  padding-top: 100px;
  text-align: center;
  margin-bottom: 10%;  
}

.sec-3 {
  margin: 5%;
  justify-content: space-between;
  display: flex;
}

.col-3 {
  flex-basis: 23%;
  position: relative;
  margin-bottom: 50px;
}

.col-3 .fa {
  color: black;
  width: 100%;
  text-align: center;
}

.col-3 p {
  width: 100%;  
  text-align: center;
  line-height: 15px;
  padding: 0;
}

.col-3 h3 {
  width: 100%;  
  margin-left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
}

/* contact section */

.contact {
  width: 80%;
  margin: auto;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
  url(../images/contact.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  padding: 100px 0;
  text-align: center;
  margin-bottom: 10%;
}

.contact h1 {
  color: white;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 700px) {
  .contact h1 {
    font-size: 20px;
  }  
}