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

/* ================VARIABLE CSS================ */
:root {
  --header-height: 3.5rem;

  /* ================COLORS================ */
  /* ================Color mode HSL(hue, saturation, lightness)================ */
  --title-color: #f8f9fa;
  --text-color: #a3a7ac;
  --text-color-light: #f8f9fa;
  --body-color: #000000;
  --container-color: #000000;
  --accent-color: #1a3d6d;

  /* ================Font and Typography================ */
  /* ================.5rem = 8px | 1rem = 16px================ */
  --body-font: "Poppins", serif;
  --second-font: "Heebo", sans-serif;
  --biggest-font-size: 2.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /* ================FONT WEIGHT================ */
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /* ================Z INDEX================ */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* ================RESPONSIVE TYPOGRAPHY================ */
@media screen and (main-width: 1152px) {
  :root {
    --biggest-font-size: 5.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

body {
  background-color: var(--body-color);
}

button,
input {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/* ================REUSABLE CSS CLASSES================ */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.main {
  overflow: hidden; /* For animations scrollreveal*/
}

/* ================HEADER & NAV================ */
.header {
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;

  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  width: 35px;
  height: auto;
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigations for mobile device*/
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0, 0%, 0%, 0.3);
    width: 100%;
    padding-block: 4rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* for safari */
    transition: top 0.4s;
  }
}

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

.nav__link {
  position: relative;
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-medium);
}

.nav__link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--title-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.3s;
}

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

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* show menu */
.show-menu {
  top: 0;
}

/* add blur to header */
.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* active link */
.active-link::after {
  width: 70%;
}

/* ================HOME================ */
.home {
  position: relative;
}

.home__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
  object-fit: cover;
  object-position: center;
}

.home__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 58%,
    hsl(0, 0%, 0%) 78%
  );
}

.home__container {
  position: relative;
  padding-top: 3rem;
  row-gap: 3rem;
}

.home__data {
  text-align: center;
}

.home__subtitle {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.home__description {
  margin-bottom: 2rem;
  color: var(--title-color);
}

.home__cards {
  grid-template-columns: 240px;
  justify-content: center;
}

.home__card {
  position: relative;
  overflow: hidden;
}

.home__card-img {
  transition: transform 0.4s;
}

.home__card-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 50%,
    hsl(0, 0%, 0%) 125%
  );
}

.home__card-title {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: var(--h3-font-size);
  z-index: 1;
}

.home__card:hover .home__card-img {
  transform: scale(1.2);
}

/* ================BUTTON================ */
.button {
  background-color: var(--accent-color);
  padding: 1.25rem 1.5rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.button:hover {
  background-color: #fff;
  color: var(--accent-color);
}

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

.about__data {
  text-align: center;
}

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

.about__image {
  position: relative;
  justify-self: center;
  overflow: hidden;
}

.about__img {
  width: 300px;
  transition: transform 0.4s;
}

.about__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 50%,
    hsl(0, 0%, 0%) 125%
  );
}

.about__image:hover .about__img {
  transform: scale(1.2);
}

.about__button {
  padding-bottom: 2rem;
}

/* ================SERVICES================ */
.services__container {
  padding-top: 1.5rem;
  grid-template-columns: 240px;
  justify-content: center;
  row-gap: 2.5rem;
}

.services__text {
  text-align: center;
  color: var(--text-color-light);
}

.services__image {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.services__img {
  transition: transform 0.4s;
}

.services__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 50%,
    hsl(0, 0%, 0%) 125%
  );
}

.services.title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.services__location {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  font-weight: 500;
}

.services__location i {
  font-size: 1rem;
}

.services__image:hover .services__img {
  transform: scale(1.2);
}

/* ================CONTACT================ */
.contact {
  position: relative;
}

.contact__image {
  position: absolute;
  overflow: hidden;
}

.contact__img {
  width: 100%;
  height: 333px;
  object-fit: cover;
  object-position: center;
}

.contact__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsl(0, 0%, 0%) 5%,
    hsla(0, 0%, 0%, 0) 40%,
    hsla(0, 0%, 0%, 0) 60%,
    hsl(0, 0%, 0%) 92%
  );
}

.contact__content {
  position: relative;
  padding-top: 16rem;
  text-align: center;
  row-gap: 2.5rem;
}

.contact__user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.contact__perfil {
  width: 45px;
  height: 48px;
  border-radius: 50%;
}

.contact__name {
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.contact__description {
  color: var(--text-color-light);
}

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

.join__data {
  text-align: center;
}

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

.join__form {
  display: grid;
  row-gap: 1rem;
}

.join__input {
  padding: 1.25rem 1rem;
  background-color: var(--container-color);
}

.join__button {
  cursor: pointer;
}

.join__map {
  position: relative;
  justify-self: center;
  overflow: hidden;
}

.join__img {
  width: 300px;
  transition: transform 0.4s;
}

.join__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 50%,
    hsl(0, 0%, 0%) 125%
  );
}

.join__image:hover .join__img {
  transform: scale(1.2);
}

a.value {
  color: var(--text-color-light);
}

a.value:hover {
  color: var(--accent-color);
}

.join__label {
  color: var(--text-color-light);
}

/* ================FOOTER================ */
.footer {
  padding-block: 2.5rem;
  background-color: var(--accent-color);
}

.footer__content {
  row-gap: 3.5rem;
}

.footer__logo {
  display: inline-block;
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

.footer__link:hover {
  color: var(--title-color);
}

.footer__group,
.footer__social {
  display: flex;
}

.footer__group {
  margin-top: 5rem;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
}

.footer__social {
  column-gap: 1.5rem;
}

.ri-mail-line,
.ri-whatsapp-line,
.ri-instagram-line {
  color: var(--text-color);
}

.ri-mail-line:hover,
.ri-whatsapp-line:hover,
.ri-instagram-line:hover {
  color: var(--text-color-light);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  text-align: center;
}

.Open {
  padding-top: 1rem;
  color: var(--text-color-light);
}

.Closed {
  padding-top: 1rem;
  padding-bottom: 1.6rem;
  color: var(--text-color-light);
}
/* ================SCROLL BAR================ */
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 10%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 20%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 30%);
}

/* ================BREAKPOINTS================ */
/* FOR SMALL DEVICES */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__logo {
    width: 30px;
    height: auto;
  }

  .footer__data {
    grid-template-columns: max-content;
  }
}

/* FOR MEDIUM DEVICES */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .services__container,
  .contact__container {
    grid-template-columns: auto;
  }
}

@media screen and (min-width: 768px) {
  .home__cards {
    grid-template-columns: repeat(3, auto);
  }

  .about__container {
    grid-template-columns: repeat(2, auto);
    align-items: center;
  }

  .about__data,
  .about__data .section__title {
    text-align: initial;
  }

  .join__data,
  .join__data .section__title {
    text-align: center;
  }

  .services__container {
    grid-template-columns: repeat(2, 240px);
  }

  .contact__img {
    width: 100vw;
  }

  .join__image {
    order: -1;
  }

  .footer__content {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-evenly;
  }

  .footer__group {
    flex-direction: row;
    justify-content: space-evenly;
  }

  .footer__copy {
    order: -1;
  }
}

/* FOR LARGE DEVICES */
@media screen and (min-width: 1023px) {
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 240px);
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

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

  .nav__logo {
    width: 60px;
    height: auto;
  }

  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }

  .home__container {
    grid-template-columns: initial;
    row-gap: 4rem;
    padding-top: 3.5rem;
  }

  .home__shadow {
    height: 980px;
  }

  .home__data {
    text-align: initial;
    width: 480px;
  }

  .home__subtitle {
    font-size: var(--h2-font-size);
  }

  .home__description {
    margin-bottom: 2.5rem;
  }

  .home__cards {
    grid-template-columns: repeat(3, 300px);
  }

  .home__card-title {
    left: 1.5rem;
    bottom: 1.5rem;
  }

  .button {
    column-gap: 1.5rem;
  }

  .about__container {
    grid-template-columns: 400px 460px;
    column-gap: 16rem;
    padding-block: 1rem;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .about__img {
    width: 460px;
  }

  .services__container {
    grid-template-columns: repeat(4, 300px);
    column-gap: 3rem;
    padding-top: 4rem;
  }

  .services__title {
    font-size: var(--h2-font-size);
  }

  .services__location {
    font-size: var(--normal-font-size);
  }

  .contact__img {
    height: 600px;
  }

  .contact__content {
    padding-top: 28rem;
    grid-template-columns: 670px 1fr;
  }

  .contact__data,
  .contact__data .section__title {
    text-align: initial;
  }

  .contact__user {
    justify-content: flex-end;
    align-self: flex-end;
    margin-bottom: 1.25rem;
  }

  .join__data,
  .join__data .section__title {
    text-align: initial;
  }

  .join__container {
    grid-template-columns: 460px 460px;
    column-gap: 8rem;
    padding-block: 1rem 5rem;
  }

  .join__img {
    width: 460px;
  }

  .join__description {
    margin-bottom: 1rem;
  }

  #footer__container {
    gap: 0;
  }

  .footer {
    padding-block: 1.5rem 1rem;
  }

  .footer__content {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer__group {
    column-gap: 46.2rem;
    justify-content: unset;
  }

  .footer__title {
    margin-bottom: 1.5rem;
  }

  .footer__social {
    column-gap: 2rem;
  }

  .footer__social-link {
    font-size: 1.5rem;
  }

  .scrollup {
    right: 3rem;
  }
}
