/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;
  /*========== Colors ==========*/
  --hue: 215;
  --sat: 70%;
  --first-color: hsl(var(--hue), var(--sat), 50%);
  --first-color-light: hsl(var(--hue), var(--sat), 85%);
  --first-color-lighten: hsl(var(--hue), var(--sat), 95%);
  --first-color-alt: hsl(var(--hue), var(--sat), 40%);
  --title-color: hsl(var(--hue), 8%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --text-color-light: hsl(var(--hue), 8%, 65%);
  --body-color: hsl(var(--hue), 0%, 100%);
  --container-color: #FFF;
  --scroll-bar-color: hsl(var(--hue), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue), 12%, 75%);
  --box-shadow: 0 8px 24px hsla(var(--hue), 8%, 35%, .1);
  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  /*========== Margenes ==========*/
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .5s;
}

h1, h2, h3 {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  line-height: 1.5;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color-light: hsl(var(--hue), var(--sat), 75%);
  --title-color: hsl(var(--hue), 8%, 95%);
  --text-color: hsl(var(--hue), 8%, 80%);
  --body-color: hsl(var(--hue), 12%, 13%);
  --container-color: hsl(var(--hue), 12%, 16%);
  --scroll-bar-color: hsl(var(--hue), 12%, 32%);
  --scroll-thumb-color: hsl(var(--hue), 12%, 24%);
  --box-shadow: 0 8px 24px hsla(var(--hue), 8%, 4%, .2);
}

/*========== Button Dark/Light ==========*/
.change-theme {
  color: var(--title-color);
  font-size: 1.8rem;
  cursor: pointer;
  transition: .3s;
  display: none; /* Hide theme toggle button */
}

.change-theme:hover {
  color: var(--first-color);
}

.dark-theme .footer {
  background-color: var(--container-color);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 5rem 0 1rem;
}

.section__title-container {
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

.section__title, .section__title-center {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-1);
}

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

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

.svg__img {
  width: 300px;
  justify-self: center;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 1024px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

/*=============== HEADER ===============*/
.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: .5s;
  box-shadow: 0 2px 8px hsla(var(--hue), 4%, 15%, .1);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .75rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__logo span {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--container-color);
    box-shadow: var(--box-shadow);
    padding: 3.5rem 0 2rem;
    width: 80%;
    top: -100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transition: .4s;
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: var(--z-fixed);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}

.nav__link, .nav__logo, .nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.nav__link {
  position: relative;
  transition: .3s;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-color: var(--first-color);
  transition: .3s;
}

.nav__link:hover::after {
  width: 60%;
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

.nav__close {
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: calc(var(--header-height) - .5rem);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

.active-link::after {
  width: 60%;
}

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/*=============== HOME ===============*/
.home__container {
  row-gap: 3rem;
  padding-top: 1rem;
}

.home__img-container {
  position: relative;
}

.home__img {
  width: 100%;
  border-radius: 1rem;
  transition: .3s;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-0-75);
}

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

.home__info {
  margin-bottom: var(--mb-2);
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}

.home__info-item {
  display: flex;
  align-items: center;
  column-gap: .75rem;
  font-size: var(--small-font-size);
}

.home__info-item div {
  display: flex;
  flex-direction: column;
}

.home__info-icon {
  font-size: 1.25rem;
  color: var(--first-color);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button-flex {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
}

.button__icon {
  font-size: 1.25rem;
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 3rem;
}

.about__data {
  text-align: center;
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--first-color);
}

.about__description {
  margin-bottom: 0;
}

.about__img-container {
  position: relative;
}

.about__img {
  width: 100%;
  border-radius: 1rem;
  justify-self: center;
}

/*=============== SECURITY ===============*/
.security__container {
  gap: 2.5rem;
}

.security__data {
  text-align: center;
}

/*=============== SERVICES ===============*/
.services__container {
  row-gap: 3rem;
  padding-bottom: 2.5rem;
}

.services__data {
  text-align: center;
}

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

.services__list {
  display: grid;
  gap: 1.5rem;
}

.services__item {
  display: flex;
  align-items: flex-start;
  column-gap: .75rem;
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: .75rem;
  box-shadow: var(--box-shadow);
  transition: .3s;
}

.services__item:hover {
  box-shadow: 0 12px 32px hsla(var(--hue), 8%, 35%, .15);
  transform: translateY(-.25rem);
}

.services__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.services__img-container {
  position: relative;
}

.services__img {
  width: 100%;
  border-radius: 1rem;
  justify-self: center;
}

/*=============== APP ===============*/
.app__container {
  gap: 2.5rem;
}

.app__data {
  text-align: center;
}

.app__description {
  margin-bottom: var(--mb-1-5);
}

.app__buttons {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: .5rem;
}

/*=============== CONTACT ===============*/
.contact__container {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: .3s;
}

.contact__card:hover {
  box-shadow: 0 12px 32px hsla(var(--hue), 8%, 35%, .15);
  transform: translateY(-.25rem);
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: var(--mb-0-75);
}

.contact__card-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.contact__card-data {
  display: block;
  font-size: var(--small-font-size);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color-lighten);
  padding: 4rem 0 1rem;
}

.footer__container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.footer__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  margin-bottom: var(--mb-1);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.footer__logo span {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
}

.footer__logo-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

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

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.25rem;
  color: var(--title-color);
  transition: .3s;
}

.footer__social-link:hover {
  color: var(--first-color);
  transform: translateY(-.25rem);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
  color: var(--title-color);
}

.footer__links {
  display: grid;
  row-gap: .75rem;
}

.footer__link {
  color: var(--text-color);
  transition: .3s;
}

.footer__link:hover {
  color: var(--first-color);
  transform: translateX(.25rem);
}

.footer__info {
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}

.footer__info-item {
  display: flex;
  align-items: flex-start;
  column-gap: .75rem;
  font-size: var(--small-font-size);
}

.footer__info-item div {
  display: flex;
  flex-direction: column;
}

.footer__info-icon {
  font-size: 1.25rem;
  color: var(--first-color);
}

.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-top: 3.5rem;
}

.footer__powered {
  text-align: center;
  margin-top: 1rem;
  font-size: var(--smaller-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer__powered p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__powered-brand {
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
}

.footer__powered-dot {
  width: 8px;
  height: 8px;
  background-color: #FF6B00;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  padding: .5rem;
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  box-shadow: var(--box-shadow);
}

.scrollup__icon {
  color: #fff;
  font-size: 1.5rem;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-.25rem);
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 360px) {
  .section {
    padding: 3.5rem 0 1rem;
  }
  
  .services__item {
    padding: 1rem .75rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .section__title-center {
    margin-bottom: 2rem;
  }

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

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

  .section {
    padding: 6.5rem 0 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  
  .nav__list {
    flex-direction: row;
    column-gap: 2.5rem;
  }
  
  .nav__toggle,
  .nav__close {
    display: none;
  }

  .change-theme {
    position: initial;
  }

  .home__container {
    padding-top: 6rem;
    grid-template-columns: 1fr 1fr;
  }
}

/* For large devices */
@media screen and (min-width: 968px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

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

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

@media screen and (min-width: 1024px) {
  .container {
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .home__img {
    width: 100%;
  }
  
  .footer__container {
    padding-top: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .scrollup {
    right: 2rem;
  }
}
