
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root{
  --header-height: 3rem;


  --first-color: #080842;
  --first-color-dark: #1e1e87;
  --first-color-darken: #0b0b3d;
  --white-color: #f7f4f4;
  

  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2.5rem;
  --normal-font-size: .938rem;
  

  --z-fixed: 100;
}

@media screen and (min-width: 768px){
  :root{
    --big-font-size: 5rem;
    --normal-font-size: 1rem;
  }
}


*,::before,::after{
  box-sizing: border-box;
}

body{
  margin: var(--header-height) 0 0 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 500;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  /* background: rgb(69, 69, 69); */
  background: var(--first-color);
}

::-webkit-scrollbar-thumb {
  background: var(--first-color-dark);
  border-radius: 5px;
}

h1,p,ul{
  margin: 0;
}

ul{
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
}


.bd-grid{
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color);
}


.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px){
  .nav_menu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    padding: 3.5rem 1.5rem 0;
    background: rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    transition: .5s;
  }
}

.nav_close{
  position: absolute;
  top: .75rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav_item{
  margin-bottom: 2rem;
}

.nav_close, .nav_link, .nav_logo, .nav_toggle{
  color: var(--white-color);
}

.nav_link:hover{
  color: var(--first-color-dark);
}

.nav_toggle{
  font-size: 1.5rem;
  cursor: pointer;
}

/*=== Show menu ===*/
.show{
  right: 0;
}


.home{
  background-color: var(--first-color);
  overflow: hidden;
}

.home_container{
  height: calc(100vh - var(--header-height));
  grid-template-rows: repeat(2, max-content);
  row-gap: 1.5rem;
}

.home_img{
  position: relative;
  padding-top: 1.5rem;
  justify-self: center;
  width: 302px;
  height: 233px;
}

.home_img img{
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 25px;
}

.home_data{
  color: var(--white-color);
}

.home_title{
  font-size: var(--big-font-size);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.home_description{
  margin-bottom: 2.5rem;
}

.home_button{
  display: inline-block;
  background-color: var(--first-color-dark);
  color: var(--white-color);
  padding: 1.125rem 2rem;
  border-radius: .5rem;
  transition: 0.4s;
  transition-property: background;
}

.home_button:hover{
  background-color: var(--first-color-darken);
}


@media screen and (min-width: 768px){
  body{
    margin: 0;
  }
  
  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav_toggle, .nav_close{
    display: none;
  }

  .nav_list{
    display: flex;
  }

  .nav_item{
    margin-left: 3rem;
    margin-bottom: 0;
  }

  .home_container{
    height: 100vh;
    grid-template-columns: repeat(2, max-content);
    grid-template-rows:  1fr;
    row-gap: 0;
    align-items: center;
    justify-content: center;
  }
  
  .home_img{
    order: 1;
    width: 375px;
    height: 289px;
  }

  .home_img img{
    width: 375px;
  }
}

@media screen and (min-width: 1024px){
  .bd-grid{
    margin-left: auto;
    margin-right: auto;
  }

  .home_container{
    justify-content: initial;
    column-gap: 4.5rem;
  }

  .home_img{
    width: 604px;
    height: 466px;
  }

  .home_img img{
    width: 604px;
  }
}

footer{
  background-color: var(--first-color);
}
footer a{
  text-decoration: none;
}
