@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
/* Basic styles */
*::before,
*::after,
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primary-clr: #ffda1a;
  --secondary-clr: #f8fafc;
  --white-clr: #fff;
  --black-clr: #000;
  --bg-clr: #151515;
  --light-clr: #b8b8b8;
  --card-clr: #202022;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--secondary-clr);
  background-color: var(--bg-clr);
  line-height: 1.6;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

a {
  display: inline-block;
  text-decoration: none;
}

li {
  list-style: none;
}

.pt-section {
  padding-top: 5rem;
}

.title {
  margin-bottom: 3rem;
}

.title h2 {
  font-size: 2rem;
  text-align: center;
}
@media (min-width: 1200px) {
  .title h2 {
    text-align: left;
    font-size: 2.5rem;
  }
}

.right-arrow {
  display: none;
}

.fade-in {
  opacity: 0;
  transition: 0.4s ease-in-out;
}

.fade-in.appear {
  opacity: 1;
}

/* Header Section */
.header {
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  background-color: var(--bg-clr);
  box-shadow: 0px 5px 10px -5px rgba(31, 31, 31, 0.29);
  z-index: 50;
}

.header .d-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  z-index: 40;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--secondary-clr);
}

/* navigation menu */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
}

.nav__list li {
  margin: 0 1rem;
  text-transform: capitalize;
}

.nav__list a {
  color: var(--secondary-clr);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav__list a:hover {
  color: var(--primary-clr);
}

.nav__list .active {
  color: var(--primary-clr);
}

/*  Responsiveness  */
/* mobile navigation menu */
@media (max-width: 48rem) {
  body.hide {
    overflow-y: hidden;
  }
  .toggle-menu {
    background-image: url(../../img/menu.svg);
    width: 30px;
    height: 20px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 10;
    transition: background-image 0.2s ease-in-out;
  }
  .nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    transform: translateX(-70rem);
    background-color: var(--black-clr);
    transition: transform 0.6s ease-in-out;
  }
  /* javascript style start*/
  .nav.showNav {
    transform: translateX(0rem);
  }
  .toggle-menu.close {
    background-image: url(../../img/close.svg);
    width: 35px;
    height: 35px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    object-fit: contain;
    cursor: pointer;
    filter: invert(1);
  }
  /* javascript style end*/
  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 8rem;
  }
  .nav__list li {
    margin-bottom: 1.5rem;
    text-transform: capitalize;
  }
  .nav__list a {
    color: var(--white-clr);
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.2s ease;
  }
  .nav__list a:hover {
    color: var(--primary-clr);
  }
  .nav__list .active {
    color: var(--primary-clr);
  }
}
.hero {
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 320px) {
  .hero {
    padding-top: 4rem;
    margin-bottom: 5rem;
  }
}
.hero__img {
  margin-bottom: 1.5rem;
}
.hero__img img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--white-clr);
}
@media (min-width: 769px) {
  .hero__img {
    margin-bottom: 0;
  }
}
.hero__info h1 {
  font-size: 2.3rem;
  line-height: 1.3;
}
@media (max-width: 320px) {
  .hero__info h1 {
    font-size: 1.6rem;
  }
}
@media (min-width: 1200px) {
  .hero__info h1 {
    font-size: 3rem;
  }
}
.hero__info .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero__info .subtitle span {
  color: var(--primary-clr);
}
.hero__text {
  margin-bottom: 2rem;
}
.hero__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 1rem;
}
.hero__link li {
  display: inline-block;
  margin-right: 1.3rem;
}
.hero__link li a {
  font-size: 1.2rem;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background-color: #282a2a;
  transition: transform 0.3s ease-in;
}
.hero__link li a:hover {
  transform: translateY(-5px);
}
.hero__link a {
  color: var(--white-clr);
}
.hero .cta {
  background-color: var(--primary-clr);
  color: var(--black-clr);
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 0.375rem;
}
@media (max-width: 320px) {
  .hero .cta {
    margin-left: 0;
  }
}

.service {
  position: relative;
}
.service__text {
  margin-bottom: 2rem;
}
.service__text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 320px) {
  .service__text h2 {
    font-size: 1.5rem;
  }
}
.service__text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.service__text .stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 1rem;
}
.service__text .stats span {
  font-size: 1.5rem;
  position: relative;
}
.service__text .stats span::after {
  content: "+";
}
.service__text .stats p {
  color: var(--light-clr);
}
.service__text .stats .ml {
  margin-left: 3rem;
}
@media (max-width: 320px) {
  .service__text .stats .ml {
    margin-left: 0;
  }
}
.service__info .card {
  background-color: var(--card-clr);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 320px) {
  .service__info .card {
    display: block;
    text-align: center;
  }
}
.service__info .card ol {
  font-size: 2rem;
  display: inline-block;
}
.service__info .card:not(:last-child) {
  margin-bottom: 1.5rem;
}
.service__info .card__info {
  transform: translateY(8px);
}
.service__info .card__info h3 {
  font-size: 1.3rem;
}
.service__info .card__info p {
  color: var(--light-clr);
  transform: translateY(5px);
}

.project .card {
  background-color: var(--card-clr);
}
.project .card .img {
  width: 100%;
  height: 300px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.project .card .card-1 {
  background-image: url(../../img/card1.png);
}
.project .card .card-2 {
  background-image: url(../../img/card2.jpg);
}
.project .card .card-3 {
  background-image: url(../../img/card3.jpg);
}
.project .card .card-4 {
  background-image: url(../../img/card4.png);
}
.project .card:not(:last-child) {
  margin-bottom: 3rem;
}
.project .card__info {
  text-align: center;
  padding: 2rem;
}
.project .card__info-title {
  margin-bottom: 3rem;
}
.project .card__info-title caption {
  color: var(--secondary-clr);
}
.project .card__info-title h3 {
  font-size: 1.4rem;
}
.project .card__info-details p {
  color: var(--light-clr);
  margin-bottom: 0.3rem;
}
.project .card__info-details .btn {
  color: var(--primary-clr);
}

.blog__post {
  background-color: var(--card-clr);
}
.blog .content {
  padding: 2rem 1rem;
}
.blog .content__title {
  margin-bottom: 1rem;
}
.blog .content span {
  font-size: 0.9rem;
  color: var(--white-clr);
  letter-spacing: 1px;
}
.blog .content h3 {
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.blog .content .author,
.blog .content .text {
  color: var(--light-clr);
}
.blog .content .btn {
  margin-top: 1rem;
  position: relative;
  font-size: 1.1rem;
  color: var(--primary-clr);
}
.blog .content .btn::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f061";
  margin-left: 0.5rem;
  display: inline-block;
  transform: translateY(0.1rem);
}

.contact {
  position: relative;
}
.contact__title {
  max-width: 700px;
}
.contact__title h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
@media (max-width: 320px) {
  .contact__title h2 {
    font-size: 1.5rem;
  }
}
@media (min-width: 1200px) {
  .contact__title h2 {
    font-size: 2.5rem;
  }
}
.contact__title a {
  font-size: 1.2rem;
  color: var(--primary-clr);
}

.footer {
  text-align: center;
  margin-bottom: 2rem;
}
.footer .logo {
  margin-bottom: 0.5rem;
}
.footer p {
  margin-bottom: 1rem;
}
.footer p a {
  color: var(--primary-clr);
}
.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__links li {
  display: inline-block;
  margin-right: 1.3rem;
}
@media (max-width: 320px) {
  .footer__links li {
    margin-bottom: 1.5rem;
  }
}
.footer__links li a {
  font-size: 1.2rem;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background-color: #282a2a;
  transition: transform 0.3s ease-in;
}
.footer__links li a:hover {
  transform: translateY(-5px);
}
.footer__links a {
  color: var(--white-clr);
}

.container {
  max-width: 1440px;
  padding: 0 1rem;
  margin: 0 auto;
}
@media (min-width: 576px) {
  .container {
    width: 576px;
    margin: 0 auto;
  }
}
@media (min-width: 769px) {
  .container {
    width: 769px;
  }
}
@media (min-width: 1024px) {
  .container {
    width: 992px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1000px;
  }
}

@media (min-width: 769px) {
  .pt-section {
    padding-top: 7rem;
  }
  .hero .d-grid {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0rem;
    place-items: center;
  }
  .hero__img {
    justify-self: flex-start;
  }
  .hero__img img {
    width: 280px;
    height: 280px;
  }
  .service .d-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    place-items: center;
  }
  .service__info {
    grid-row: 1/2;
    justify-self: flex-start;
    width: 100%;
  }
  .project .d-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
  }
  .project .card {
    margin-bottom: 0;
  }
  .project .card:not(:last-child) {
    margin-bottom: 0;
  }
  .blog .d-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .blog .content {
    align-self: center;
  }
  .blog img {
    height: 100%;
  }
  .footer .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer .logo,
  .footer p {
    margin-bottom: 0;
  }
  .footer .logo {
    vertical-align: middle;
  }
}
@media (min-width: 1200px) {
  .service,
  .contact {
    padding-top: 7rem;
  }
  .service .right-arrow,
  .contact .right-arrow {
    display: block;
    position: relative;
    top: -5rem;
    transform: translateX(-10rem);
  }
  .contact {
    padding-top: 11rem;
  }
  .contact::before {
    top: 3rem;
  }
  .project .card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .project .card .img {
    width: 240px;
    height: 280px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  .project .card__info {
    text-align: left;
    padding: 0;
    margin-left: 2rem;
  }
}