@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #0765FF;
  --secondary-color: #ffffff;
  --secondary-color-light: #efefef;
  --text-light: #1c1c1c;
  --white: #000000;
  --black: #ffffff;
  --max-width: 900px;
}

/* popup */
/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 90px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  
}

/* Modal Content */
.modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 25px;
  
  border: 1px solid #9c9c9c;
  width: 95%;
  border-radius: 10px;
  min-height: 80vh;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-right: 10px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/* popup */

/* slider */
.content{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.btn{
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary{
  background-color: #007fc8;
  color: #fff;
}

.btn-primary:hover{
  background-color: #004e7a;
}
.slider{
  display: flex;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  padding: 20px;
}

.slider.dragging{
  cursor: grab;
  scroll-behavior: auto;
}

.slider.dragging .card{
  pointer-events: none;
}

.slider .card{
  user-select: none;
  margin-left: 14px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 24%;
}

.slider .card:first-child{
  margin-left: 0px;
}

/* slider */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
  color: #ffffff;
}

.section__header {
  font-size: 1.5rem;
  font-weight: 500;
}

.section__subheader {
  position: relative;
  isolation: isolate;
  margin-bottom: 1rem;
  padding-left: 20px;
  font-size: 1rem;
  font-weight: 400;
}

.section__subheader::after {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 45px;
  aspect-ratio: 1;
  background-color: var(--primary-color);
  z-index: -1;
  border-radius: 5px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.60rem 1rem;
  outline: none;
  font-size: .85rem;
  color: var(--white);
  border-radius: 5px;
  cursor: pointer;
}

.btn__secondary {
  background-color: transparent;
  border: 1px solid #a1a1a1;
  color: #a1a1a1;
}

.btn__primary {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #ffffff;
}

.btn span {
  font-size: .85rem;
  transition: 0.3s;
}

.btn:hover span {
  transform: translateX(5px);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--white);
  background-color: #000000;
}

header {
  background-image: url("assets/mpro.gif");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  width: 11rem;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  padding: 5px;
  font-size: .85rem;
  font-weight: 500;
  color: #ffffff;
  transition: 0.3s;
}

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

.nav__menu__btn {
  display: none;
  font-size: 1.5rem;
}

.header__container {
  padding-block: 2.5rem 8rem;
}

.header__container h1 {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.header__container .btn {
  margin: auto;
  color: #ffffff;
  border-color: #ffffff;
}

.about {
  background-color: #ffffff;
  
}

.about__container {
  padding-block: 0;
}

.about__grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  background-color: #ffffff;
  transform: translateY(-5rem);
  border-radius: 10px;
  box-shadow: 0 0 15px  rgba(0, 0, 0, 0.22); 
  color: #000;
}

.about__content .section__header {
  margin-bottom: 1rem;
}

.about__content .para {
  color: var(--text-light);
  font-size: .85rem;
}

.about__list {
  display: grid;
  gap: 2rem;
}

.about__item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about__item span {
  padding: 5px 10px;
  font-size: 1.75rem;
  color: var(--primary-color);
  background-color: var(--secondary-color-light);
  border-radius: 5px;
}

.about__item h4 {
  font-size: .8rem;
  font-weight: 600;
}

.stats {
  background-color: var(--black);
}

.stats__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stats__content .section__header {
  margin-bottom: 1rem;
}

.stats__content .para {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stats__card span {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.stats__card h4 {
  font-size: 2rem;
  font-weight: 700;
}

.stats__card p {
  font-weight: 500;
}

.stats__image {
  display: grid;
  gap: 2rem;
}

.stats__image img {
  max-width: 450px;
  margin: auto;
  border-radius: 5px;
}

.banner {
  background-image:url("assets/mpro.gif");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner__content {
  max-width: 800px;
}

.banner__content .section__header {
  margin-bottom: 1rem;
}

.banner__content .para {
  max-width: 600px;
  margin-bottom: 2rem;
}

.banner__btns {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.btn_w{
  color: #ffffff;
  border-color: #ffffff;
}

.blog {
  background-color: var(--secondary-color);
}
.blog__container{
  color: #000;
}
.blog__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
}
.filtering{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.search{
  flex: 1;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  outline: none;
  border: 1px solid #aaaaaa;
  border-radius: 5px;
  margin-right: 10px;
}
.search_container{
  max-width: 400px;
  display: flex;
  height: 40px;
}
.blog__card{
  background-color: #ffffff;
  border-radius: 10px;
  margin-right: 15px;
  box-shadow: 0 0 10px  rgba(0, 0, 0, 0.15); 

}
.blog__card img {
  margin-bottom: .3rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 170px;
}
.card__content{
  border-radius: 10px;
  padding: 15px;
  min-width: 15rem;
}
.btn-product{
  width: 100%;
  display: block;
}
.btn-more{
  margin-top: 40px;
}
.btn-right{
  display: flex;
  justify-content: right;
}
.card__content > div {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card__content div span {
  font-size: 0.6rem;
  color: var(--text-light);
}

.card__content div span i {
  margin-right: 5px;
  font-size: .8rem;
  color: var(--primary-color);
}

.card__content h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.card__content p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: .8rem;
}

.subscribe {
  background-image: url("assets/mpro.gif");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.book {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.book_container {
  max-width: 700px;
  text-align: center;
}
.subscribe__container {
  max-width: 700px;
  text-align: center;
}

.book__container {
  max-width: fit-content;
  margin-inline: auto;
}
.subscribe__container .section__subheader {
  max-width: fit-content;
  margin-inline: auto;
}

.book__container form {
  margin-block: 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.subscribe__container form {
  margin-block: 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.book__container input {
  flex: 1;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--white);
  border-radius: 5px;
}
.subscribe__container input {
  flex: 1;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--white);
  border-radius: 5px;
}

.book__container .btn {
  flex: 1;
  justify-content: center;
}
.subscribe__container .btn {
  flex: 1;
  justify-content: center;
}

.book__container .para a {
  color: var(--primary-color);
}
.subscribe__container .para a {
  color: var(--primary-color);
}

.customer {
  background-color: var(--secondary-color-light);
}

.customer__container .para {
  margin-block: 1rem 4rem;
  color: var(--text-light);
}

.swiper {
  width: 100%;
  padding-bottom: 4rem;
}

.customer__review .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

.customer__review__card {
  position: relative;
  isolation: isolate;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.customer__review__card span {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 6rem;
  line-height: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
}

.customer__review__card p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.customer__review__details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.customer__review__details img {
  max-width: 70px;
  border-radius: 100%;
}

.customer__review__details h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.customer__review__details h5 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

.footer {
  background-color: var(--secondary-color);
  border-top: 2px solid var(--secondary-color-light);
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.logo{
  margin-bottom: 20px;
  width: 240px;
}

.footer__col p {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: .8rem;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__socials a {
  padding: 5px 10px;
  font-size: 1rem;
  color: var(--primary-color);
  background-color: var(--secondary-color-light);
  border-radius: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}


.footer__links a {
  margin-bottom: 1rem;
  display: flex;
  color: var(--text-light);
  transition: 0.3s;
  font-size: .8rem;
}

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

.footer__bar {
  padding: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-light);
}

@media (width < 900px) {
  .nav__links {
    gap: 1.5rem;
  }

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

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

  .stats__image {
    grid-area: 1/1/2/2;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .footer__container {
    grid-template-columns: 2fr 1fr;
  }
}

@media (width < 600px) {
  nav {
    position: fixed;
    width: 100%;
    padding: 1rem;
    background-color: #000000;
    z-index: 99;
  }
  .modal-content { 
    padding: 8px;
  }
  .nav__links {
    position: absolute;
    left: 0;
    top: 68px;
    padding: 2rem;
    width: 100%;
    flex-direction: column;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.5s;
    background-color: rgba(0, 0, 0, 0.9);
  }

  .nav__links .link a {
    opacity: 0;
  }

  .nav__links.open .link a {
    opacity: 1;
  }

  .nav__links.open {
    transform: scaleY(1);
  }

  .nav__menu__btn {
    display: block;
    color: #ffffff;
  }

  .header__container h1 {
    margin-top: 4rem;
    font-size: 2.2rem;
    max-width: 260px;
  }

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

  .blog__grid {
    grid-template-columns: repeat(1, 1fr);
    padding: 0 40px;
  }
 
  .blog__card img{
    height: 170px;
  }
  .card__content div span {
    font-size: 0.75rem;
  }
  
  .card__content div span i {
    font-size: .85rem;
  }
  
  .card__content h4 {
    font-size: 1rem;
  }
  
  .card__content p {
    font-size: .8rem;
  }


  .book__container form {
    flex-direction: column;
  }
  .subscribe__container form {
    flex-direction: column;
  }
  .filtering{
    flex-direction: column;
  }
  .search_container{
    margin-top: 10px;
  }

  .book__container .btn {
    width: 100%;
  }
  .subscribe__container .btn {
    width: 100%;
  }
}
