@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  scroll-behavior: smooth;
}
body {
  font-family: "Raleway", sans-serif;
  background-color: #f1f2f3;
}
.container {
  max-width: 1170px;
  margin: 0 auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.section-title {
  display: inline-block;
  position: relative;
  padding: 10px 0;
  margin-bottom: 30px;
  font-size: 37px;
}
.section-title::before {
  position: absolute;
  content: "";
  width: 40%;
  height: 3px;
  background-color: #ff9800;
  left: 0;
  bottom: 0;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.primary-btn {
  border: none;
  background-color: transparent;
}
.primary-btn a {
  color: white;
  background-color: #ff9800;
  display: block;
  border-radius: 30px;
  padding: 8px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  transition: 0.5s ease border, 0.5s ease background-color, 0.5s ease color;
  border: 1px solid #ff9800;
}
.primary-btn a:hover {
  border: 1px solid #ff9800;
  background-color: transparent;
  color: #ff9800;
}

/* loader */
.loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader.loaded {
  visibility: hidden;
  opacity: 0;
  z-index: -1000;
}
.pre-loader {
  width: 30px;
  height: 30px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  border-left: 2px solid black;
  animation: 1s rotate linear infinite;
}

/* header */
.header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  transition: 0.5s ease background-color;
}
.header.fixed {
  background-color: white;
  position: fixed;
}
.header .row {
  align-items: center;
  justify-content: space-between;
}
.header .logo a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 900;
  padding: 0 15px;
}
.header.fixed .logo a {
  color: black;
}
.header .nav-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  display: none;
}
.header .nav-toggle span {
  width: 20px;
  height: 2px;
  position: relative;
  background-color: white;
}
.header .nav-toggle span::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  bottom: 5px;
  left: 0;
}
.header .nav-toggle span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  top: 5px;
  left: 0;
}
.header.fixed .nav-toggle span,
.header.fixed .nav-toggle span::before,
.header.fixed .nav-toggle span::after {
  background-color: black;
}

.header .nav {
  padding: 0 15px;
}
.header .nav ul {
  list-style: none;
}
.header .nav ul li {
  display: inline-block;
}
.header .nav ul li a {
  display: block;
  color: white;
  font-weight: 600;
  text-decoration: none;
  margin-right: 20px;
  padding: 25px 0;
  font-size: 15px;
  transition: 0.5s ease color;
}
.header.fixed .nav ul li a {
  color: black;
}
.header .nav ul li a:hover {
  color: #ff9800;
}

/* Home */
section.home {
  min-height: 100vh;
  background: url(../img/home-bg.jpg) center/cover no-repeat;
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
}
section.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}
.home .row {
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
}
.home-text h4 {
  font-size: 20px;
}
.home-text h1 {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.home .square {
  width: 35px;
  height: 35px;
  position: absolute;
  right: 20px;
  top: 20%;
  border: 2px solid #ff9800;
  animation: rotate 3s linear infinite;
}
/* about */
.about {
  padding: 80px 20px 0;
}
.about .about-image {
  width: 33.33%;
  position: relative;
}
.about .square {
  width: 35px;
  height: 35px;
  position: absolute;
  left: 30px;
  top: 30px;
  border: 2px solid #ff9800;
  animation: rotate 3s linear infinite;
}
.about .about-image img {
  display: block;
  width: 100%;
}
.about .about-text {
  width: 66.6%;
  padding-left: 15px;
}
.about .about-text p {
  line-height: 24px;
  text-align: justify;
  color: #555;
  margin-bottom: 25px;
}
.about .about-text .stats {
  margin-bottom: 30px;
}
.stats .stat-box {
  width: 25%;
  text-align: center;
  padding: 0 15px;
}
.stat-box h2 {
  font-size: 40px;
  margin-bottom: 5px;
  font-weight: 600;
}
.stat-box h5 {
  color: #555;
  text-transform: uppercase;
}

/* services */
section.services {
  padding: 60px 20px 0;
}
.services .service-item {
  width: 33.33%;
  padding: 0 15px;
  margin-bottom: 30px;
}
.services .service-item-inner {
  position: relative;
  overflow: hidden;
}
.services .service-item-inner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  transition: 0.5s ease background-color;
  text-align: center;
}
.services .service-item-inner .overlay:hover {
  background-color: transparent;
}
.service-item-inner .overlay:hover h2 {
  transform: translateX(30px);
  opacity: 0;
  transition: 0.5s ease transform, 0.5s ease opacity;
}
.services .service-item-inner:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}
.services .service-item-inner img {
  width: 100%;
  display: block;
  filter: grayscale(100);
  transition: 0.5s ease transform, 0.5s ease filter;
}
.services .service-item-inner .overlay h2 {
  color: white;
  transition: 0.5s ease transform;
  font-size: 15px;
}

/* works */
section.works {
  padding: 60px 20px 0;
}
.works .work-item {
  width: 33.3%;
  padding: 0 15px;
  margin-bottom: 30px;
  cursor: pointer;
}
.works .work-item img {
  width: 100%;
  display: block;
  transition: 0.5s ease filter, 0.5s ease transform;
  transform: scale(1.1);
}
.works .work-item-inner {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.works .work-item-inner .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  display: flex;
  align-items: flex-end;
  color: white;
  transition: 0.5s ease background-color;
}
.works .work-item-inner .overlay:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
.works .work-item-inner:hover img {
  filter: grayscale(100);
  transform: scale(1);
}
.works .work-item-inner .overlay h2 {
  padding: 0 0 20px 20px;
  font-size: 15px;
  transform: translateX(30px);
  opacity: 0;
  transition: 0.5s ease transform, 0.5s ease opacity;
}
.works .work-item-inner .overlay:hover h2 {
  transform: translateX(0px);
  opacity: 1;
}

/* contact */
section.contact {
  padding: 90px 20px 30px;
}
section.contact .contact-bg {
  padding: 150px 0;
  background: url(../img/contact-bg.jpg) center/cover no-repeat;
  text-align: center;
}
.contact .section-title {
  color: white;
}
.contact .section-title::before {
  background-color: white;
  left: 30%;
}
.contact-form {
  width: 85%;
  margin: auto;
  margin-top: -110px;
  margin-bottom: 20px;
  padding: 15px 20px;
  background-color: #f2f2f3;
}
.form-field {
  padding: 0 15px;
}
.contact-form .col-1 {
  width: 100%;
}
.contact-form .col-2 {
  width: 50%;
}
.contact-form textarea {
  height: 100px;
  resize: none;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #bbb;
  padding: 8px 0;
  background: transparent;
  outline: none;
  color: #555;
  margin: 5px 0;
  font-family: "Raleway", sans-serif;
}
.form-field label {
  display: block;
  margin: 25px 0 5px;
  font-size: 14px;
  color: #555;
}
.contact-form .submit-btn {
  display: block;
  margin: 20px auto 0;
}
.submit-btn a {
  font-weight: 500;
}
.contact-info .row {
  width: 85%;
  margin: auto;
}
.contact-info div {
  width: 33.33%;
  text-align: center;
  padding: 0 20px;
}
.contact-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}
.contact-info p {
  color: #555;
  font-size: 14px;
}
.social-links {
  padding: 30px 15px 0;
  text-align: center;
}
.social-links a {
  text-decoration: none;
  transition: 0.5s ease opacity;
}
.social-links a:hover {
  opacity: 0.8;
}
.social-links a img {
  width: 30px;
  height: 30px;
  display: inline-block;
  padding: 4px;
}

/* footer */
footer {
  padding: 20px;
  border-top: 1px solid #ccc;
}
footer p {
  text-align: center;
  font-size: 14px;
  color: #555;
}

/* light box */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  /* cursor: zoom-out; */
  display: none;
}
.lightbox .lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  padding: 40px 0;
}
.lightbox .img-box {
  position: absolute;
}
.lightbox .lightbox-caption-box {
  color: white;
  font-size: 16px;
  position: absolute;
  bottom: 10px;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.lightbox .lightbox-caption {
  padding: 0 15px;
}
.lightbox .lightbox-number {
  padding: 0 15px;
}
.lightbox .close-btn {
  position: absolute;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: white;
  font-size: 30px;
  font-weight: 400;
  right: 0;
  top: 5px;
  cursor: pointer;
}
.next,
.prev {
  color: white;
  background-color: transparent;
  color: white;
  border: none;
  outline: none;
  position: absolute;
  top: 50%;
  cursor: pointer;
  right: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  margin-top: -25px;
  font-size: 22px;
  font-weight: 600;
  transition: 0.5s background-color ease;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
}
.prev {
  margin-left: 5px;
}
.next {
  margin-right: 5px;
}
.next:hover,
.prev:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
.prev {
  left: 0;
}
/* media queries */
@media (max-width: 767px) {
  .header {
    padding: 10px 0;
  }
  .header .nav-toggle {
    display: flex;
    margin: 0 15px;
    position: relative;
    z-index: 120;
  }
  .header .nav {
    width: 100%;
    background-color: white;
    display: none;
  }
  .header .nav.open {
    display: block;
  }
  .header .nav ul {
    padding-left: 0;
  }
  .header .nav ul li {
    display: block;
  }
  .header .nav ul li a {
    color: black;
    padding: 15px 0;
  }
  .header .nav-toggle.open span {
    background-color: transparent;
  }
  .header .nav-toggle.open span:before {
    transform: rotate(-40deg);
    top: 0;
  }
  .header .nav-toggle.open span:after {
    transform: rotate(40deg);
    top: 0;
  }
  .home-text h1 {
    font-size: 40px;
    letter-spacing: 3px;
  }
  .section-title {
    font-size: 35px;
  }
  .about .about-image {
    margin-bottom: 30px;
  }
  .about .about-text {
    padding-left: 0;
  }
  .about .about-image,
  .about .about-text {
    width: 100%;
  }
  .stat-box h2 {
    font-size: 35px;
  }
  .services .service-item,
  .works .work-item {
    width: 50%;
  }
  .services .service-item-inner .overlay h2,
  .works .work-item-inner .overlay h2 {
    font-size: 14px;
  }
  .contact-form {
    width: 90%;
    padding: 0;
  }
}
@media (max-width: 575px) {
  .home-text h1 {
    font-size: 32px;
    letter-spacing: 3px;
  }
  .section-title {
    font-size: 28px;
  }
  .stats .stat-box {
    width: 50%;
    margin-bottom: 30px;
  }
  .services .service-item,
  .works .work-item,
  .contact-form .col-2,
  .contact-info div {
    width: 100%;
  }
  .contact-info div {
    margin-bottom: 25px;
  }
  .social-links {
    padding: 0 15px;
  }
}
