/* --------------------------
Author : Mazharul Islam,
Autor URL : dev maz portfolio template ,
Autor FB : https://www.facebook.com/mazharul.me/,
Template Name : Template Name,
Template Created Using : HTML5, CSS, VANILLA JAVASCRIPT, OTHER NAME,
Version : 1.0
----------------------------- */

/* -------------------------------------------------------

************** Table of contents **********************

 # fonts
 # variables
 # customize scrollbar and selection
 # base
 # section
 # button
 # animation keyframes
 # preloader
 # heading
 # all section

  === responsive 
----------------------------------------------------------*/

/* ---------------------------
1. = fonts 
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500;600;700&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ------------------------------------
# variables
 -----------------------------------*/
:root {
  --primary-color: #0bceaf;
  --heading-color: #fff;
  --paragraph-color: #e9e1e1;
  --body-bg-color: #2b2c2f;
  --box-bg-color: rgba(37, 42, 46, 0.788);
  --transition: all 0.3s ease;
  scroll-behavior: smooth;
}


/* -------------------------------------------------
# customize scrollbar and selection
 --------------------------------------------------------*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 30px;
}
::selection {
  background: transparent;
  color: var(--primary-color);
}

/* -------------------------------------------
# base  
  ----------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}
html {
	overflow-x: hidden;
	-webkit-overflow-scrolling: unset;
}
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 300; /* 300 */
  line-height: 1.5;
  background: var(--body-bg-color);
  color: var(--paragraph-color);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: unset;
}

a {
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  border: none;
  cursor: pointer;
  outline: none !important;
}

p {
  margin: 0;
  font-size: 15px;
  line-height: 30px;
}
h2 {
  font-weight: 700;
}
h3 {
  font-weight: 600;
}
h1,h2,h3 {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--heading-color);
  line-height: 1.2;
  text-transform: capitalize;
}

::after,
::before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.inner-width {
  max-width: 1170px;
  padding: 0 15px;
  margin: auto;
}
.row {
  display: grid;
  grid-gap: 20px;
}
.row-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.row-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.row-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) { 
  .md-row-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

 }

@media (max-width: 768px) {
  .md-row-cols-1 {
    grid-template-columns: 1fr;
  }
  .md-row-cols-3,
  .md-row-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .md-row-cols-3,
  .md-row-cols-2 {
    grid-template-columns: 1fr;
  }
}
/* ---------------------------------
# section 
 -----------------------------------*/
section:not(.bennar__section) {
  padding: 60px 0;
}
/* ----------------------------------------
# button 
 --------------------------------------*/
.button {
  display: inline-block;
  background: var(--primary-color);
  padding: 15px 35px;
  color: var(--heading-color);
  font-family: inherit;
  color: 16px;
  border-radius: 40px;
  transition: all .3s ease;
  border: 2px solid var(--primary-color);
}
.button:hover {
  background: transparent;
  transform: scale(1.05);
  border-style: dashed;
  color: var(--primary-color);
}


/* -----------------------------------
# animation keyframes 
 ----------------------------------------*/

/* ----------------------------------
# preloader 
 -------------------------------------*/

 .preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: var(--body-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s;
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}
.preloader span {
  vertical-align: middle;
  border-radius: 100%;
  background: var(--primary-color);
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin: 0.3rem 0.2rem;
  animation: preloader 0.8s linear infinite alternate;
}
.preloader span:nth-child(1) {
  animation-delay: -0.8s;
}
.preloader span:nth-child(2) {
  animation-delay: -0.53333s;
}
.preloader span:nth-child(3) {
  animation-delay: -0.26666s;
}
@keyframes preloader {
  from {
    transform: scale(0, 0);
  }
  to {
    transform: scale(1, 1);
  }
}





/* heading */
.heading {
  font-weight: 400;
  text-align: center;
  padding-top: 40px 0;
  margin-bottom: 60px;
  color: var(--heading-color);
  font-size: 40px;
  text-transform: uppercase;
  position: relative;
}
.heading::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--primary-color);
}
.heading::after {
  content: attr(data-heading);
  position: absolute;
  bottom: -13px;
  font-size: 17px;
  left: 50%;
  background: var(--body-bg-color);
  transform: translateX(-50%);
  border-right: 5px solid transparent;
  border-left: 2px solid transparent;
}


 /* header  */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1200;
  background: var(--body-bg-color);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, .3);
}
.header .logo {
  display: block;
  font-weight: 600;
  font-size: 24px;
  color: var(--heading-color);
}
.header .logo span {
  color: var(--primary-color);
}
.header .nav__links a {
  position: relative;
  margin: 0 15px;
  color: var(--heading-color);
  font-weight: 400;
  padding-bottom: 5px;
  cursor: pointer;
  font-size: 15px;
  transition: all ease 0.3s;
  text-transform: capitalize; 
}
.header .nav__links a::before {
	content: attr(data-hover);
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
  max-width: 0;
	color: var(--primary-color);
	transition: max-width .7s;
}
.header .nav__links a:hover::before {
    max-width: 100%;
}
.header .nav__links a.active {
    color: var(--primary-color);
}



#nav-toggler {
  font-size: 25px;
  color: var(--heading-color);
  cursor: pointer;
  display: none;
}
/* bennar section */
.bennar__section {
  background: url(../../assets/images/bennar\ bg.jpg) no-repeat;
  background-size: cover;
}

.bennar__section .row {
  min-height: 100vh;
  align-items: center;
  padding: 100px 0 40px 0;
}

.bennar__section .bennar-content span {
  font-size: 20px;  
  color: var(--heading-color);
}
.bennar__section .bennar-content h2 {
  font-size: 35px;
  color: var(--primary-color);
}
.bennar__section .bennar-content h3 {
  margin: 0 0 10px;
}
.bennar__section .bennar-content p {
  margin: 0 0 15px;
}
.bennar__section .bennar-image {
  text-align: center;
}
.bennar__section .bennar-image img {
  width: 400px;
  height: 400px; 
  border-radius: 50%;
  border: 8px solid var(--primary-color);
  transition: all .3s ease;
  user-select: none;
  cursor: pointer;
  animation: upandown 10s infinite;
}

@keyframes upandown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(50px);
  }
  100% {
    transform: translateY(0);
  }
}


.bennar-content .social-icon a {
  background: var(--primary-color);
  color: var(--heading-color);
  width: 40px;
  height: 40px;
  border: 1px solid var(--heading-color);
  border-radius: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
}


/* about */

.about__section .about-head {
  position: relative;
  text-transform: capitalize;
  margin-bottom: 34px;
}
.about__section .about-head::after {
  content: "";
  position: absolute;
  top: 101%;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}
.about__section h2 {
  margin: px 0;
}
.about__section .button {
  margin-top: 10px;
}

.about__section .personal-info ul li {
  margin: 20px 0;
  font-size: 15px;
}
.about__section .personal-info ul li span:nth-child(1) {
  color: var(--primary-color);
  font-weight: 400;
}
.about__section .intarest-item {
  /* background-color: var(--box-bg-color); */
  border: 1px solid var(--heading-color);
  padding: 15px;
  text-align: center;
}
.about__section .intarest-item i {
  color: var(--primary-color);
  font-size: 25px;
}


/* Services Section  */

.services__section .services-item {
  /* background-color: var(--box-bg-color); */
  border: 1px solid var(--paragraph-color);
  padding: 60px 40px;
  text-align: center;
  border-radius: 7px;
}
.services__section .services-item .logo {
  width: 80px;
  height: 70px;
  background: var(--primary-color);
  text-align: center;
  line-height: 70px;
  border-radius: 5px;
  margin: 13px auto;
}
.services__section .services-item .logo img {
  width: 40px;
  height: 40px;
  filter: invert(1);
}

.availabe-for {
  margin-top: 60px;
  padding: 40px;
  background: var(--box-bg-color);
  text-align: center;
}
.availabe-for h2 {
  font-size: 40px;
  margin: 10px 0;
}

/* skills section */

.skills__section .p-heading {
  font-size: 20px;
  position: relative;
  text-transform: capitalize;
  margin-bottom: 35px;
}
.skills__section .p-heading span {
  color: var(--primary-color);
}
.skills__section .p-heading::after {
  content: "";
  position: absolute;
  top: 101%;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}
.skills__section .skill-item {
  margin: 15px 0;
}
.skills__section .skill-item h3 {
  margin-bottom: 5px;
}
.skills__section .skill-item .progress {
  width: 100%;
  height: 8px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}
.skills__section .skill-item .progress .progress-bar {
  width: 0;
  background: var(--primary-color);
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: all 1s ease;
  opacity: 0;
}
.skills__section .skill-item .progress .progress-bar span {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: -30px;
  font-size: 20px;
  color: var(--paragraph-color);
}


/* how i work section */

.how-i-work-item {
  border: 1px solid var(--primary-color);
  padding: 50px;
  text-align: center;
}
.how-i-work-item i {
  color: var(--primary-color);
  font-size: 50px;
  display: block;
  margin: 0 0 10px;
}

/* contact section */

.contact-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0 30px;
}
.contact-item i {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  text-align: center;
  line-height: 50px;
  font-size: 25px;
  color: var(--white);
  border-radius: 50%;
}
.contact-item h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.contact-item span {
  text-transform: capitalize;
}
.contact-item span:nth-child(2) {
  text-transform: lowercase;
}

.contact-info .social-icon a {
  background: transparent;
  color: var(--heading-color);
  width: 40px;
  height: 40px;
  border: 1px solid var(--heading-color);
  border-radius: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  transition: all .3s ease;
}
.contact-info .follow h2 {
  margin: 0 0 12px;
}
.contact-info .social-icon a:hover {
  background-color: var(--primary-color);
}

.contact-form .form-input label{
  display: block;
  margin: 0 0 7px;
  color: var(--heading-color);
}

.contact-form .form-controls {
  width: 100%;
  display: block;
  margin: 0 0 10px;
  background: transparent;
  border: 1px solid var(--primary-color);
  padding: 12px 15px;
  color: var(--heading-color);
}

.contact-form textarea {
  resize: none;
  height: 120px;
}


.footer {
  text-align: center;
  padding: 30px;
  background: var(--box-bg-color);
  font-size: 25px;
  font-weight: 400;
}
.footer span {
  color: var(--primary-color);
}
/*-------------------------------------   responsive  --------------------------------------  */

/* # media breakpoint in === 992 px */
@media (max-width: 992px) {
  .bennar__section .bennar-content h2 {
    font-size: 30px;
  }
}
/* # media breakpoint in === 768 px */
@media (max-width: 768px) {

  #nav-toggler {
    display: block;
  }
  .bennar__section .bennar-content {
    text-align: center;
  }
  .bennar__section .bennar-image {
    order: -1;
  }
  .header .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--body-bg-color);
    width: 100%;
    clip-path: inset(0 0 100% 0);
    transition: all .3s ease !important;
  }
  .header .nav__links.active {
    clip-path: inset(0 0 0 0);
  }
  .header .nav__links a {
    display: block;
    margin: 10px 10px;
  }
  .heading {
    font-size: 30px;
  }
  .availabe-for h2 {
    font-size: 30px;
  }
  .footer {
    font-size: 20px;
   }

}
/*  # media breakpoint in === 576 px */
@media (max-width: 576px) {
  .bennar__section .bennar-image img {
    width: 300px;
    height: 300px; 
  }
.footer {
    font-size: 17px;
   }
}
