@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Work+Sans:wght@400;500&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --heading: #000;
  --para: #281f7f;
  --para-tint: #edecff;
  --white: #fff;
  --black: #000;
  --helper: #4f3dfe;
  --overlay-color: #3f31cb;
  --helper-tint: #cac5ff;
  --bg: #edecff;
  --icon-bg: rgba(220, 216, 255, 0.2);
  --gradient: linear-gradient(0deg, rgb(114 100 254) 0%, rgb(149 139 254) 100%);
  --gradientSupport: -webkit-linear-gradient(
    0deg,
    rgb(114 100 254) 0%,
    rgb(149 139 254) 100%
  );
  --shadow: 0px 0px 5px 0px rgb(8 6 25 / 20%);
  --shadow-support: rgb(63 49 203 / 30%);
}

html {
  font-size: 62.5%;
  /* 1rem = 10px */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/*---------------------------
Preloader
---------------------------*/

#loading {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #fff url("../images/preloader/preloader.gif") no-repeat center;
  z-index: 9999999;
}

/*---------------------------
Other Elements
---------------------------*/

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
}

h1 {
  color: var(--heading);
  font-size: 6rem;
  font-weight: 600;
}

h3 {
  font-size: 1.8rem;
  font-family: 400;
}

p {
  color: var(--para);
  line-height: 1.6;
  font-size: 1.7rem;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

.logo-dot {
  color: var(--helper);
}

/*---------------------------
Header Section Start
---------------------------*/

.header {
  padding: 0 4.8rem;
  height: 10rem;
  background-color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.non-sticky .header {
  transition: all 0.3s ease;
}

.header .logo {
  height: 3rem;
  font-weight: 800;
}

.navbar-lists {
  display: flex;
  gap: 4.8rem;
}

.navbar-link:link,
.navbar-link:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--black);
  transition: all 0.3s linear;
}

.navbar-link:hover,
.navbar-link:active {
  color: var(--helper);
}

.mobile-navbar-btn {
  display: none;
  background-color: transparent;
  cursor: pointer;
  border: none;
}

.mobile-nav-icon[name="close-outline"] {
  display: none;
}

/* Sticky NavBar */
.sticky .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 8rem;
  background-color: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.sticky .section-hero {
  margin-top: 8rem;
}

/*---------------------------
Reusable Code Section
---------------------------*/

.section {
  padding: 9rem 0;
}

.container {
  max-width: 140rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 9rem;
}

.grid-two-column {
  grid-template-columns: repeat(2, 1fr);
}

.grid-three-column {
  grid-template-columns: repeat(3, 1fr);
}

.grid-four-column {
  grid-template-columns: repeat(4, 1fr);
}

.btn {
  background: var(--helper);
  padding: 1.6rem 3.2rem;
  border: none;
  border-radius: 9rem;
  color: var(--white);
  display: inline-block;
  text-transform: capitalize;
  font-size: 1.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.btn:hover,
.btn:active {
  box-shadow: 0 2rem 2rem 0 var(--shadow-support);
}

.common-heading {
  font-size: 4.8rem;
  font-weight: 600;
  margin-bottom: 6rem;
  text-transform: capitalize;
  position: relative;
}

.common-heading::before {
  content: "";
  position: absolute;
  top: 110%;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--helper);
  border-radius: 50%;
}

.common-heading::after {
  content: "";
  position: absolute;
  top: 118%;
  left: 1.5rem;
  min-width: 20rem;
  height: 0.3rem;
  background: var(--helper);
}

/*---------------------------
Hero Section Start
---------------------------*/

.section-hero {
  background-color: var(--bg);
}

.section-hero-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-top-data {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--helper);
}

.hero-heading {
  text-transform: capitalize;
  font-weight: 700;
  font-size: 6.4rem;
}

.hero-para {
  margin-top: 1.5rem;
  margin-bottom: 5rem;
  max-width: 60rem;
}

.section-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 80%;
  border-radius: 2rem;
}

/*---------------------------
Bio Section Start
---------------------------*/

.bio-image {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2rem;
}

.bio-image img {
  width: 95%;
  box-shadow: -2rem -2rem 0 0 var(--helper);
  display: inline-block;
}

.bio-data-stats {
  display: flex;
  padding: 6.4rem 0;
  flex-direction: column;
  gap: 3rem;
}

.bio-stats h3 {
  margin-bottom: 1rem;
}

.bio-progress-bar {
  width: 90%;
  height: 0.8rem;
  background-color: var(--para-tint);
  border-radius: 10rem;
  position: relative;
}

.bio-progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: inherit;
  background: var(--helper);
  border-radius: 10rem;
}

.bio-progress-2::before {
  width: 80%;
}

.bio-progress-3::before {
  width: 70%;
}

.bio-progress-4::before {
  width: 50%;
}

.bio-progress-5::before {
  width: 90%;
}

.bio-progress-bar span {
  position: absolute;
  top: 1.8rem;
  left: 100%;
  width: 4rem;
  height: 2rem;
  background-color: var(--helper);
  border-radius: 2rem;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%);
}

.bio-progress-2 span {
  left: 80%;
}

.bio-progress-3 span {
  left: 70%;
}

.bio-progress-4 span {
  left: 50%;
}

.bio-progress-5 span {
  left: 90%;
}

/* To Create a Caret */

.bio-progress-bar span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 0.8rem solid var(--helper);
  border-color: transparent;
  border-bottom-color: var(--helper);
  top: -1.6rem;
}

/*---------------------------
Portfolio Section Start
---------------------------*/

.section-portfolio {
  background-color: var(--bg);
  transition: all 0.7s linear;
}

.section-portfolio p {
  max-width: 60rem;
}

.p-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  margin: 6.4rem 0;
}

.portfolio-images {
  gap: 3.2rem;
}

.portfolio-images img {
  width: 100%;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}

.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--helper);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: all 0.3s linear;
  border-radius: 7px;
}

.img-overlay:hover .overlay {
  transform: translateY(0);
  opacity: 0.8;
  cursor: pointer;
}

.img-overlay .common-heading {
  margin: 0;
  color: var(--white);
  text-decoration: none;
}

.img-overlay .common-heading::after,
.img-overlay .common-heading::before {
  display: none;
}

.p-btn-active {
  transform: translateY(-1rem);
}

.p-image-not-active {
  display: none;
}

/*---------------------------
Work Data Section Start
---------------------------*/

.section-work-data {
  background-color: var(--helper);
  text-align: center;
  transition: all 0.7s linear;
  color: var(--white);
}

.counter-numbers {
  font-size: 4.8rem;
}

.section-work-data p {
  color: var(--white);
  text-transform: capitalize;
}

/*---------------------------
Services Section Start
---------------------------*/

.section-services {
  transition: all 0.7s linear;
}

.section-services p {
  max-width: 60rem;
}

.section-services .grid {
  margin-top: 10rem;
  row-gap: 10rem;
}

.service-box {
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: 5px;
  border-radius: 5px;
  padding: 6.4rem 3.2rem;
  transition: all 0.2s linear;
}

.service-box:hover,
.service-box:active {
  transform: translateY(-3rem);
}

.service-icon {
  width: 8rem;
  height: 8rem;
  background-color: var(--icon-bg);
  display: inline-block;
  border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
  padding: 1.4rem 1.8rem;
  position: relative;
  color: var(--heading);
  animation: water-wave 3s linear infinite;
}

.service-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
  border: 1px solid var(--black);
  animation: water-wave 3s linear infinite;
}

@keyframes water-wave {
  0% {
    border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
  }

  50% {
    border-radius: 3% 97% 15% 85% / 72% 0% 100% 28%;
  }
  100% {
    border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
  }
}

.service-box h3 {
  text-transform: capitalize;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/*---------------------------
Swiper Section Start
---------------------------*/

.swiper {
  width: 100%;
  height: 100%;
  margin-top: 9rem;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-client-msg {
  padding: 5rem 8rem;
  background: var(--white);
  border-radius: 1rem;
  text-align: left;
  box-shadow: var(--shadow);
  position: relative;
}

.swiper-client-msg::before {
  content: "";
  position: absolute;
  bottom: -10rem;
  left: 50%;
  transform: translateX(-50%);
  border: 5rem solid var(--white);
  border-color: transparent;
  border-top-color: var(--helper-tint);
}

.swiper-client-msg p::before {
  content: "\f10d";
  position: absolute;
  top: 0;
  left: 2rem;
  font-size: 5rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--helper-tint);
}

.swiper-client-msg p::after {
  content: "\f10e";
  position: absolute;
  bottom: 0;
  right: 4rem;
  font-size: 5rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--helper-tint);
}

.swiper-client-data {
  align-items: center;
  margin-top: 3.2rem;
  gap: 3.2rem;
}

.swiper-slide img {
  max-width: 10rem;
  height: 10rem;
  border-radius: 50%;
  border: 0.5rem solid var(--helper-tint);
}

/*---------------------------
Freelancing Section Start
---------------------------*/

.section-freelancing {
  background: url(../images/folio/3.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-attachment: fixed;
  position: relative;
  transition: all 0.7s linear;
  text-align: center;
}

.section-freelancing .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
  opacity: 0.7;
}

.section-freelancing .container {
  position: relative;
}

.section-freelancing h2 {
  font-size: 5.4rem;
}

.section-freelancing span {
  color: #a0f669;
}

.section-freelancing h2,
.section-freelancing p {
  color: var(--white);
  margin-bottom: 1.8rem;
}

/*---------------------------
Contact Section Start
---------------------------*/

.section-contact-main {
  max-width: 70rem;
  margin: 0 auto;
  margin-top: 9rem;
  transition: all 0.3s linear;
}

.section-contact-main form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.section-contact-main input,
.section-contact-main textarea {
  padding: 1.5rem 2rem;
  font-family: "work sans";
  width: 100%;
  font-size: 1.5rem;
}

.section-contact-main input[type="submit"] {
  max-width: 30%;
  border: none;
}

.section-contact-main .grid {
  gap: 2.4rem;
}

/* From uiverse.io by @alexruix */
.contact-input-group {
  position: relative;
}

.contact-input {
  border: solid 1.5px #9e9e9e;
  border-radius: 1rem;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: var(--black);
  transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-label {
  position: absolute;
  left: 15px;
  color: #e8e8e8;
  pointer-events: none;
  transform: translateY(1rem);
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
}

.contact-input:active,
.contact-input:focus {
  outline: none;
  border: 1.5px solid var(--helper);
}

.contact-input:active ~ .contact-label,
.contact-input:focus ~ .contact-label {
  transform: translateY(-50%) scale(0.8);
  background-color: #fff;
  padding: 0 0.2em;
  color: var(--helper-tint);
}

/*---------------------------
Footer Section Start
---------------------------*/

.section-footer {
  background: var(--para);
  transition: all 0.7s linear;
}

.section-footer h3 {
  color: var(--white);
  margin-bottom: 4rem;
}

.f-about p {
  color: #adadad;
}

.f-links ul,
.f-services ul,
.f-address address {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  justify-content: center;
}

.f-links li,
.f-links a,
.f-services li,
.f-services a {
  font-size: 1.8rem;
  color: #adadad;
  text-transform: capitalize;
}

.f-links span,
.f-services span,
.f-address span {
  margin-right: 1rem;
}

.f-address p,
.f-address p a {
  font-style: normal;
  color: #adadad;
}

.f-credits {
  margin-top: 5rem;
}

.f-credits p {
  text-align: center;
  color: #adadad;
}

footer a:hover {
  color: var(--white);
}

/*---------------------------
Scroll Section Start
---------------------------*/

.scrollTop-style {
  position: fixed;
  right: 2%;
  bottom: 5%;
  z-index: 1;
}

.scroll-top {
  width: 4rem;
  height: 4rem;
  background-color: var(--helper);
  display: inline-block;
  padding: 1.4rem 1.8rem;
  color: var(--white);
  animation: water-wave 3s linear infinite;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s linear;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.scroll-top:hover,
.scroll-top:active {
  box-shadow: 0 2rem 2rem 0 var(--shadow-support);
}

/*---------------------------
Media Queries
---------------------------*/

/* For 1500px */
@media (max-width: 95em) {
  .container {
    max-width: 130rem;
    padding: 0 3.2rem;
  }

  .navbar-lists {
    gap: 3.4rem;
  }
}

/* For 1200px */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .container {
    max-width: 110rem;
  }

  .grid {
    gap: 4.8rem;
  }
}

/* For 980px */
@media (max-width: 60em) {
  html {
    font-size: 50%;
  }

  .grid {
    gap: 6rem;
  }

  .grid-two-column {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-three-column {
    grid-template-columns: repeat(2, 1fr);
  }

  /* NavBar */

  .header {
    position: relative;
  }

  .mobile-navbar-btn {
    display: block;
    z-index: 9999;
    border: 3px solid var(--black);
    color: var(--black);
  }

  .mobile-nav-icon {
    width: 5rem;
    height: 5rem;
    color: var(--black);
  }

  .header .logo {
    width: 40%;
  }

  .mobile-navbar-btn {
    display: block;
    z-index: 99999;
    border: 3px solid var(--black);
    color: var(--black);
  }

  .header {
    position: relative;
  }

  .header .logo {
    width: 40%;
    height: auto;
  }

  .navbar {
    width: 100%;
    height: 100vh;
    background: var(--helper);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: all 0.5s linear;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
  }

  .navbar-lists {
    flex-direction: column;
    align-items: center;
  }

  .navbar .navbar-lists .navbar-link:link,
  .navbar .navbar-lists .navbar-link:visited {
    color: var(--white);
    font-size: 3.2rem;
  }

  .navbar .navbar-lists .navbar-link:hover,
  .navbar .navbar-lists .navbar-link:active {
    color: var(--black);
  }

  .active .navbar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 9999;
  }

  .active .mobile-navbar-btn {
    border-color: var(--white);
  }

  .active .mobile-navbar-btn .mobile-nav-icon[name="close-outline"] {
    display: block;
    color: var(--white);
  }

  .active .mobile-navbar-btn .mobile-nav-icon[name="menu-outline"] {
    display: none;
  }

  /* Hero Section */

  .section-hero-data {
    align-items: center;
  }

  .hero-img {
    width: 60%;
  }

  .section-hero h1 {
    line-height: 1.05;
  }

  .bio-image img {
    width: 40%;
  }

  /* Portfolio Section */

  .img-overlay .common-heading {
    font-size: 3.2rem;
  }

  .img-overlay .common-heading::after,
  .img-overlay .common-heading::after {
    content: "";
    width: 0;
    height: 0;
  }
}

/* For 780px */

@media (max-width: 49em) {
  .container {
    max-width: 71rem;
  }

  .contact-container {
    max-width: 71rem;
  }

  .grid-four-column {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero Section */

  .hero-heading {
    text-align: center;
  }

  .hero-para {
    text-align: center;
    margin-top: 2rem;
  }

  .hero-img {
    width: 90%;
  }

  /* Bio Section */

  .bio-image img {
    width: 70%;
  }

  .bio-image {
    grid-row: 2/3;
    margin-top: 3.2rem;
  }

  /* Portfolio Section */

  .section-portfolio .grid-three-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Swiper Testimonial Section */

  .swiper-client-data {
    margin-top: 6rem;
    gap: 1rem;
  }

  .swiper-pagination {
    position: static;
    margin-top: 1rem;
  }

  .swiper-client-data .grid-two-column {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer Section */

  .section-footer .f-about,
  .section-footer .f-address {
    grid-column: 1/-1;
  }
}

/* For 560px */
@media (max-width: 35em) {
  .btn {
    padding: 1rem 2rem;
  }

  /* NavBar */

  .header {
    padding: 0 3.2rem;
  }

  .header .logo {
    width: 50%;
  }

  /* Portfolio */

  .p-btns {
    gap: 1rem;
  }

  .img-overlay .common-heading {
    font-size: 2.4rem;
  }

  /* Counter Section */

  .counter-numbers {
    font-size: 3.2rem;
  }

  /* Services Section */

  .section-services .grid-three-column {
    grid-template-columns: 1fr;
  }

  /* Freelancing Section */

  .section-freelancing h2 {
    font-size: 3rem;
  }

  /* Contact Form */

  .contact-container {
    padding: 0 3.2rem;
  }

  .section-contact-main input[type="submit"] {
    max-width: 40%;
  }

  /* Footer Section */

  .section-footer .grid-four-column {
    grid-template-columns: 1fr;
  }
}
