/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  /* --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%); */
  --first-color: #3c5feb;
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /* for theme  */
  --primary-color: #ffffff;
  --secondary-color: #0d1730;
  --foot: #0d1730;
  /*===== Fuente y tipografia =====*/
  --body-font: Poppins, sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

.dark-theme {
  --primary-color: #0d1730;
  --secondary-color: #d2d9e7;
  --foot: #0d1730;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

::-moz-selection {
  /* Code for Firefox */
  color: var(--primary-color);
  background: var(--secondary-color);
}

::selection {
  color: var(--primary-color);
  background: var(--secondary-color);
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* cursor: none; */
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--secondary-color);
  background: var(--primary-color);
  /* cursor: none; */
  transition: 0.6s linear;
}
img {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

/* =================================== */
h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
  box-shadow: 0px 0px 20px 2px #3c70ff23;
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section_blog {
  padding-top: 0.4rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  color: var(--primary-color);
  z-index: var(--z-fixed);
  color: var(--primary-color);
  /* background-color: var(--primary-color); */
  background: hsl(var(--hue), 70%, 4%, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  color: var(--primary-color);
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

/* .navo, .navo_blog {
  padding-right: 310px;
}

.menu_theme{
padding: 0 20px;
} */

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100vh;
    padding: 2rem;
    /* background: var(--primary-color); */
    background: hsl(var(--hue), 70%, 4%, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: 0.5s;
  }
}

/* @media screen and (max-width: 390px) {
  .navo {
    width: 40px;
    height: auto;
    border-radius: 50%;
  }
} */
@media screen and (max-width: 768px) {
  .navo {
    width: 40px;
    height: auto;
    /* border-radius: 50%; */
  }
  .nav__link::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--first-color);
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    transition: width 0.3s;
  }
  .nav__link::hover {
    color: var(--first-color);
  }
  .nav__link:hover::after {
    width: 30%;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__menu .nav__list .nav__item a {
  color: var(--secondary-color);
}

.nav__link {
  position: relative;
  color: #fff;
}
/* 
.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--primary-color);
} */

.nav__logo {
  color: var(--second-color);
}

.logo {
  width: 60px;
  height: auto;
  border-radius: 20%;
}

.logo_blog {
  width: 270px;
  height: auto;
}

.nav__toggle {
  color: var(--first-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/* theme switching */
#icon {
  width: 20px;
  cursor: pointer;
  transition: all 500ms;
}

nav ul i {
  color: #ffffff;
}

/* .theme {
  background: #3e6ff4;
  box-shadow: 1px -1px 104px -11px rgba(0, 0, 0, 0.83);
  -webkit-box-shadow: 1px -1px 104px -11px rgba(0, 0, 0, 0.83);
  -moz-box-shadow: 1px -1px 104px -11px rgba(0, 0, 0, 0.83);
  border-radius: 50%;
  padding: 7px;
  transition: background 5000ms;
} */

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 12rem 0 5rem;
}

.home_blog {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 -5rem;
  /* width: 1350px; */
  overflow: hidden;
  z-index: -10;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 420px) {
  .home_blog {
    position: relative;
    padding: 4rem 0 -5rem;
    width: 408px;
    overflow: hidden;
    z-index: -10;
  }

  .logo_blog {
    width: 170px;
    height: auto;
  }
}

.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
  cursor: default;
}

.home__title-color {
  color: var(--first-color);
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.9rem;
  color: var(--secondary-color);
}

.home__social-icon:hover {
  color: var(--first-color);
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}

.home__img_blog {
  position: absolute;
  width: 1000px;
  padding: 70px;
}

.home__blob {
  fill: var(--first-color);
}

.home__blob-img {
  width: 360px;
  transform: translateY(-20deg);
  transition: 0.5s;
}

.home__blob-img:hover::after {
  transform: translateY(20deg);
}

.wrap {
  background: #ffffff;
  margin: 18px 14px;
  z-index: 1000;
  background: var(--primary-color);
  box-shadow: 0px 25px 80px rgba(0, 0, 0, 0.253);
  border-radius: 11px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1.2rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  /* transition: .3s; */
}

.button:hover {
  background-color: #1954f8;
  box-shadow: 0px 15px 20px #3f6dee7c;
  color: #fff;
  transform: translateY(-7px);
  /* box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15); */
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about hr {
  width: 80%;
}

.blog-gap {
  margin: 45px 0;
}

.blog_article {
  padding: 45px 100px;
}

@media screen and (max-width: 768px) {
  .blog_article {
    padding: 45px 30px;
  }
}

.vcard {
  margin-top: 20px;
  margin-bottom: 0;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
}

.about__img {
  justify-self: center;
}

.about__img img {
  width: 200px;
  border-radius: 0.5em;
}

.about__img_blog img {
  width: 400px;
  border-radius: 0.5em;
}

.distro_img {
  display: block;
  margin-right: auto;
  padding: 10px 0;
  width: 50%;
}

.jsanimation_img {
  border-radius: 12px;
  display: block;
  margin-left: 100px;
  /* padding: 10px 0; */
  width: 50%;
}

@media screen and (max-width: 600px) {
  .distro_img {
    width: 350px;
  }
}

@media screen and (max-width: 1000px) {
  .distro_img {
    width: 550px;
  }
}

@media screen and (max-width: 600px) {
  .jsanimation_img {
    width: 350px;
    margin: 0;
  }
}

@media screen and (max-width: 1000px) {
  .jsanimation_img {
    width: 550px;
    margin: 0;
  }
}

.blog_ul {
  list-style: disc;
  padding: 10px 0 20px 40px;
  font-size: 15px;
  font-weight: 500;
}

/* ===== SKILLS =====*/

.skills__container {
  row-gap: 2rem;
  text-align: center;
}

.skills__subtitle {
  margin-bottom: var(--mb-2);
}

.skills__text {
  margin-bottom: var(--mb-4);
}

.skills__data {
  display: grid;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.6rem;
  box-shadow: 5px 5px 14px #0000001f, -5px -5px 14px #00000023;
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}

.skills__names {
  display: flex;
  align-items: center;
  justify-self: center;
  font-size: 23px;
}

.skills_icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-content: center;
}

.skills_icons img {
  width: 40px;
  height: auto;
  margin: 20px;
  border-radius: 24%;
  box-shadow: 2px 2px 14px#2549aa34, -5px -5px 14px #4a63ad2d;
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}

.skills__full {
  width: 100%;
  margin-bottom: 2px;
}

.skills__img {
  border-radius: 0.5rem;
  height: 442px;
  padding-left: 30px;
}

/* ===== WORK =====*/
.workflow {
  background: var(--primary-color);
  padding: 2px;
  /* margin: 22px; */
  border-radius: 12px;
  box-shadow: 2px 2px 14px#2549aa34, -5px -5px 14px #4a63ad2d;
}


.work_info {
  padding: 5px 15px 10px 15px;
  cursor: default;
}

.work__container {
  row-gap: 2rem;
}

.work__img {
  /* background: #ffffff; */
  margin: 2px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work__img img {
  transition: 500ms;
  border-radius: 12px;
  width: 470px;
  height: auto;
}

.work__img img:hover {
  transform: scale(1.1);
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
  background: var(--secondary-color);
  color: var(--primary-color);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.fileUpload input[type="file"] {
  display: none;
}

/* ===== FOOTER =====*/
.footer {
  background-color: var(--foot);
  /* color: var(--secondary-color); */
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}

.counter {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 12px;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
  color: #fff;
  /* color: var(--primary-color); */
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  /* color: var(--primary-color); */
  margin: 0 var(--mb-2);
  transition: 1.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.footer__icon:hover {
  color: #3e6ff4;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: #fff;
}

.footer__copy span {
  font-size: var(--smaller-font-size);
  color: #3e6ff4;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }

  .home__img {
    width: 200px;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }

  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }

  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: 300px;
    bottom: 25%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }

  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }

  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }

  .contact__container {
    justify-items: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: var(--mb-6);
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    display: flex;
    padding-top: 0;
  }

  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav__link {
    color: var(--second-color);
  }

  .home {
    padding: 8rem 0 2rem;
  }

  .home__img {
    width: 400px;
    bottom: 10%;
  }

  .about__container {
    padding-top: 2rem;
  }

  .about__img img {
    width: 300px;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }

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

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .home {
    padding: 13rem 0 2rem;
  }

  .home__img {
    width: 450px;
  }
}
@media screen and (max-width: 575px) {
  .workflow {
    background: var(--primary-color);
    padding: 2px;
    margin: 34px;
    border-radius: 12px;
    box-shadow: 2px 2px 14px#2549aa34, -5px -5px 14px #4a63ad2d;
  }
  
  .work__img {
    margin: 0 0px;
  }
  }
@media screen and (max-width: 412px) {
  .home__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 260px;
    padding-bottom: 110px;
  }

  .work__img {
    margin: 0 0px;
  }
}

@media screen and (min-width: 1325px) {
  .even .about__img_blog {
    padding-left: 80px;
  }
}

@media screen and (max-width: 768px) {
  .even {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
  }

  .logo_blog {
    width: 180px;
    height: auto;
  }

  /* .even .about__img_blog {
    padding-left: 20px;
  } */
}

@media screen and (max-width: 768px) {
  .odd {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
}

@media screen and (max-width: 569px) {
  .even .about__img_blog {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .odd .about__img_blog {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

/* pagination position styling */
.pagination_section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* pagination styling */
.pagination_section a {
  color: var(--secondary-color);
  padding: 10px 18px;
  text-decoration: none;
  margin: 0 8px;
}

/* pagination hover effect on non-active */
.pagination_section a:hover:not(.activa) {
  background-color: #3e6ff4;
  color: white;
  border-radius: 6px;
}

/* pagination hover effect on active*/
.pagination_section a:nth-child(0) {
  background-color: var(--secondary-color);
  color: white;
  border-radius: 6px;
}

.pagination_section a:nth-child(1) {
  font-weight: bold;
  background-color: #3e6ff4;
  color: white;
  border-radius: 50%;
}

.pagination_section a:nth-child(6) {
  font-weight: bold;
  background-color: #3e6ff4;
  color: white;
  border-radius: 50%;
}

/* driver.js/ */
.driver-popover.driverjs-theme {
  background-color: #fde047;
  color: #000;
}

.driver-popover.driverjs-theme .driver-popover-title {
  font-size: 20px;
}

.driver-popover.driverjs-theme .driver-popover-title,
.driver-popover.driverjs-theme .driver-popover-description,
.driver-popover.driverjs-theme .driver-popover-progress-text {
  color: #000;
}

.driver-popover.driverjs-theme button {
  flex: 1;
  text-align: center;
  background-color: #000;
  color: #ffffff;
  border: 2px solid #000;
  text-shadow: none;
  font-size: 14px;
  padding: 5px 8px;
  border-radius: 6px;
}

.driver-popover.driverjs-theme button:hover {
  background-color: #000;
  color: #ffffff;
}

.driver-popover.driverjs-theme .driver-popover-navigation-btns {
  justify-content: space-between;
  gap: 3px;
}

.driver-popover.driverjs-theme .driver-popover-close-btn {
  color: #9b9b9b;
}

.driver-popover.driverjs-theme .driver-popover-close-btn:hover {
  color: #000;
}

.driver-popover.driverjs-theme
  .driver-popover-arrow-side-left.driver-popover-arrow {
  border-left-color: #fde047;
}

.driver-popover.driverjs-theme
  .driver-popover-arrow-side-right.driver-popover-arrow {
  border-right-color: #fde047;
}

.driver-popover.driverjs-theme
  .driver-popover-arrow-side-top.driver-popover-arrow {
  border-top-color: #fde047;
}

.driver-popover.driverjs-theme
  .driver-popover-arrow-side-bottom.driver-popover-arrow {
  border-bottom-color: #fde047;
}

/* blogs  */
.blog_contents p {
  margin: 10px 100px;
  text-align: justify;
}

.blog_contents h3 {
  text-align: center;
  font-size: 56px;
}

