/* Variables */
:root {
  --header-font: "Montserrat", sans-serif;
  --main-font: "Poppins", sans-serif;
}

/* Global Styles */
body {
  font-family: var(--main-font);
  color: #343434;
  font-weight: 400;
}

html {
  scroll-padding-top: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--header-font);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.6;
  font-size: 15px;
  color: #748182;
}

span {
  display: inline-block;
}

img {
  width: 100%;
}

/* Reusable class */
.btn {
  border-color: #1c1c1c;
  font-size: 13px;
  padding: 10px 40px;
}

.btn-dark:hover {
  background-color: #fff;
  color: #212529;
}

.bg-section {
  background-color: #f7f7f7;
}

.section-title {
  margin-bottom: 70px;
  text-align: center;
}
.section-title h3 {
  font-weight: 900;
  font-size: 40px;
  position: relative;
  display: inline-block;
  z-index: 4;
}

.section-title h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 30px;
  background-image: url(../img/dots.png);
  background-repeat: repeat;
  z-index: -1;
}

/* Navbar */
nav {
  background-color: #fff;
}

.nav-link {
  position: relative;
  padding: 0px !important;
  color: #222;
  cursor: pointer;
  width: fit-content;
}
.navbar-nav > li {
  font-size: 13px;
  margin: 0 15px 0;
}

.nav-link:focus,
.nav-link:hover {
  color: #222;
}

nav .nav-link::after {
  position: absolute;
  content: "";
  bottom: -2px;
  width: 0;
  background-color: #222;
  left: 0;
  height: 2px;
  transition: all 0.5s;
}

nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: unset;
  padding: 0;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23111' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

nav .navbar-brand {
  font-weight: 800;
  font-size: 18px;
  color: #1c1c1c;
  letter-spacing: 1px;
}

@media screen and (max-width: 767px) {
  .navbar-nav > li {
    margin: 25px 15px 0;
  }
}

/* Home */
.home {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url(../img/bg.jpg);
  background-size: cover;
  background-attachment: fixed;
}

.home .socials span {
  background-color: rgba(0, 0, 0, 0.3);
  width: 35px;
  height: 35px;
  line-height: 35px;
  border-radius: 50%;
  font-size: 14px;
}

.typing::after {
  content: "";
  font-weight: 400;
  animation: typing 10s ease infinite;
}

/* About */
.about .about-img::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -30px;
  width: 80%;
  height: 80%;
  background-image: url(../img/dots.png);
  background-repeat: repeat;
  z-index: -1;
}

.about .subtitle {
  color: #999;
}
.about .skills h6 {
  font-size: 13px;
}
.about .skills .progress {
  margin-bottom: 30px;
  height: 24px;
  background-color: #f7f7f7;
  box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
}

.about .skills .progress-bar {
  padding: 5px 10px;
  background-color: #1c1c1c;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-radius: 5px;
}

.about .btn {
  margin-top: 20px;
}

/* Services */
.services .single-service {
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0px 10px 30px -8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  text-align: center;
  margin-bottom: 30px;
}

.services .service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 30px;
  background-color: #f4f4f4;
  transition: all 0.5s;
}

.services .single-service:hover .service-icon {
  background: #1c1c1c;
  color: #eee;
}

/* Portfolio */
.portfolio .nav-link {
  margin: 0 15px;
  font-weight: 700;
}

.portfolio .nav-link:hover::after,
.portfolio .nav-link.active::after {
  width: 100%;
}

.portfolio .item-img {
  padding: 0 15px;
  margin-bottom: 30px;
  position: relative;
}

.portfolio .item-img-overlay {
  margin: 0 15px;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  top: 5px;
  bottom: 5px;
  left: 5px;
  right: 5px;
  transition: all 0.5s;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
}

.portfolio .item-img:hover .item-img-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio .item-img-overlay .icon i {
  background-color: #111;
  color: #eee;
  border: 1px #111 solid;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 28px;
  border-radius: 50%;
  font-size: 14px;
  transition: all 0.5s;
}
.portfolio .item-img h6 {
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 15px;
  transform: translateY(-15px);
  transition: all 0.5s;
}
.portfolio .item-img:hover h6 {
  transform: translateY(0);
}

.portfolio .item-img-overlay .icon:hover i {
  background-color: transparent;
  color: #111;
}

/* Testimonial */
.testimonial p {
  word-spacing: 2px;
}

.testimonial h6 {
  font-size: 16px;
  font-weight: 600;
  margin: 30px 0 5px;
}

.testimonial span {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 30px;
}

.testimonial .testi-icon {
  width: 90px;
}
.carousel-indicators [data-bs-target] {
  background-color: #d6d6d6;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 10px;
}

.carousel-indicators .active {
  background-color: #869791;
}

/* Stats */
.stats .item {
  text-align: center;
}
.stats .icon {
  font-size: 30px;
  margin-bottom: 15px;
}
.stats h3 {
  font-weight: 900;
  margin-bottom: 15px;
}
.stats p {
  font-weight: 600;
  margin-bottom: 30px;
}

/* Team */
.team .member {
  background-color: #5c5c5c;
  border-radius: 5px;
  margin-bottom: 10px;
}
.team .member-img {
  overflow: hidden;
}
.team .member-img:hover img {
  scale: 1.2;
}
.team .member-img img {
  border-radius: 5px;
  transition: all 0.5s;
}

.team .member-img .social {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  opacity: 0;
  margin: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  transform: rotateY(180deg) scale(0.5, 0.5);
  transition: all 0.5s;
  cursor: pointer;
}

.team .member:hover .social {
  opacity: 1;
  transform: translateY(0);
}
.member-img .social ul li a {
  display: block;

  font-size: 20px;
  height: 40px;
  width: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #000;
  color: #fff;
  background-color: #000;
}
.img-text {
  padding: 25px;
}

/* Contact */
.contact .item {
  margin-bottom: 30px;
}
.contact .item .icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: #f4f4f4;
  color: #1c1c1c;
  margin-bottom: 15px;
  border-radius: 50%;
  font-size: 30px;
  transition: all 0.5s;
}

.contact .item:hover .icon {
  background: #1c1c1c;
  color: #eee;
}
.contact .form-control {
  background-color: #f4f4f4;
  border: none;
  padding: 10px;
  font-size: 14px;
}

.contact .form-control:focus {
  border: unset;
  box-shadow: none;
}
.contact textarea#message {
  height: 160px;
  max-height: 160px;
  max-width: 100%;
}

.contact .btn {
  background-color: #1c1c1c;
  color: #eee;
}
/* Footer */
footer {
  background-color: #1c1c1c;
  padding: 30px;
}
