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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --bg-color: hsl(220, 18%, 78%);
  --bg-color-light: hsl(220, 18%, 86%);
  --title-color: hsl(220, 8%, 10%);
  --text-color: hsl(220, 4%, 32%);
  --text-color-light: hsl(220, 4%, 55%);
  --body-color: hsl(220, 18%, 99%);
  --container-color: hsl(220, 18%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Lora', serif;

  --biggest-font-size: 2.25rem;
  --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-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

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

@media screen and (min-width: 1124px) {
  :root {
    --biggest-font-size: 4.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 ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin:0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /*For animation dark mode*/
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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






   

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
body.dark-theme{
    --bg-color: hsl(220, 18%, 13%);
  --bg-color-light: hsl(220, 18%, 23%);
  --title-color: hsl(220, 8%, 95%);
  --text-color: hsl(220, 8%, 65%);
  --body-color: hsl(220, 18%, 18%);
  --container-color: hsl(220, 18%, 21%);
}

/*========== Button Dark/Light ==========*/
.change-theme{
    color: var(--title-color);
    font-size: 1.125rem;
    cursor: pointer;
}

/*========== 
    Color changes in some parts of 
    the website, in dark theme 
==========*/
.dark-theme .scroll-header{
    box-shadow: 0 2px 8px hsla(220, 18%, 8%, .3);
}

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

.dark-theme .nav_menu,
dark-theme .scrollup{
    box-shadow: 0 4px 8px hsla(220, 18%, 8%, .3);
}

.dark-theme::-webkit-scrollbar{
    background-color: hsl(220, 18%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb{
    background-color: hsl(220, 18%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover{
    background-color: hsl(220, 18%, 35%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

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

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

.section_title {
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: 3rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header{

    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: .4s;

}

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

}

.nav_logo{
    color: var(--title-color);
    font-weight: var(--font-medium);
    padding-top: .5rem;
   
}

.nav_logo img{
    width: 70%;
    height: auto;
}

@media screen and (max-width: 1023px){
    .nav_menu{
        position: fixed;
        bottom: 1.5rem;
        background-color: var(--body-color);
        box-shadow: 0 4px 12px hsla(220, 18%, 40%, .15);
        width: 90%;
        left: 0;
        right: 0;
        margin: 0 auto;
        padding: 1.25rem 2.8rem;
        border-radius: .5rem;
        transition: .4s; /*For animation dark mode*/
    }

    .nav_list{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav_link{
        color: var(--text-color-light);
        font-weight: var(--font-medium);
        display: grid;
        justify-items: center;
        row-gap: .25rem;
    }

    .nav_link i{
        font-size: 1.25rem;
    }

    .nav_link span{
        font-size: .688rem;
    }

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

/* Change background header */

.scroll-header{
    background-color: var(--body-color);
    box-shadow: 0 1px 4px hsla(220, 4%, 15%, .1);
}


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

/*===================GET IN TOUCH===============*/



.form_container{
  
   width:80%;
   height:80%;
   grid-template-columns:max-content;
   justify-content: center;
   background-color:var(--bg-color-light);
   margin: 10rem;
   padding: 5rem;
  
}

#submit{

    margin-top: 4rem;
   

}
  
  .contact_link{
      color: var(--title-color)!important;
      text-decoration: none;
      transition: .3s;
  }

.contact_link:hover{
    background-color: var(--body-color);
}




/*=============== FOOTER ===============*/


.footer_container{
    row-gap: 3rem;
    
}

footer{
    background-color: var(--bg-color);
}

.footer_logo{
    color: var(--title-color);
    font-size: var(--h2-font-size);
    font-weight: var(--font-medium);
    display: inline-block;
    margin-bottom: .75rem;
    
}

.footer_content,
.footer_links{
    display:grid;
}

.footer_content{
    grid-template-columns: repeat(2, max-content);
    gap: 3.5rem 3rem;
}

.footer_title{
    font-size: var(--h3-font-size);
    margin-bottom: 1.25rem;
}

.footer_links{
    row-gap: .75rem;
}

.footer_link,
.footer_information{

    font-size: var(--small-font-size);
}

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

.footer_link:hover{
    text-decoration: underline;
    color: var(--title-color);
}

.footer_social{
    display: flex;
    column-gap: .5rem;
}

.footer_social-link{
    display: inline-flex;
    color: var(--title-color);
    padding: .4rem;
    background-color: var(--container-color);
    font-size: 1.25rem;
    transition: background-color .3s;
}

.footer_social-link:hover{
   /* background-color: var(--bg-color-light);*/
    background-color: var(--bg-color);
}


.footer_info{
    margin-top: 6rem;
    padding-bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: .75rem;
}

.footer_copy,
.footer_privacy{
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(220, 8%, 76%);
}

::-webkit-scrollbar-thumb{
    background-color: hsl(220, 8%, 64%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover{
    background-color: hsl(220, 8%, 54%);
}
/*=============== SCROLL UP ===============*/
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--container-color);
    box-shadow: 0 8px 12px hsla(220, 18%, 45%, .15);
    display: inline-flex;
    padding: .35rem;
    color: var(--title-color);
    font-size: 1.1rem;
    z-index: var(--z-tooltip);
    transition: .3s;

}   

.scrollup:hover{
    transform: translateY(-.25rem);
}

/* Show Scroll Up*/
.show-scroll{
    bottom: 7.5rem;
}

/*=============== BREAKPOINTS ===============*/

/*---------- For small devices ------------*/
@media screen and (max-width: 340px){
   .container{
    margin-left: 1rem;
    margin-right: 1rem;
} 

.footer_content{
    grid-template-columns: max-content;
    row-gap:2rem;
}

.nav_menu{
    padding: 1rem 1.5rem;
    
}
#theme-button{
    margin-right:3rem
    }

.form_container{
  
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    grid-template-columns:max-content;
    justify-content: center;
    margin: 1rem;
    margin-right: 2rem;
    padding: 1rem;
       
    }

    .form-group{
        padding-right: 2rem;
    }

  
}



/*-----------------------------------*/

@media screen and (min-width: 340px){

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

    #theme-button{
        margin-right:4rem
        }
        .form_container{
  
            width: 100%;
            height: 100%;
            background-color: var(--bg-color);
            grid-template-columns:max-content;
            justify-content: center;
            margin: 1rem;
            margin-right: 2rem;
            padding: 1rem;
               
            }
        
        .form-group{
            padding-right: 2rem;
            }
}

/*---------------- For medium devices----------- */
@media screen and (min-width: 576px) {
    .nav_menu{
        width: 372px;
    }

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

}

/*-----------------------------------------*/
@media screen and (min-width: 767px){

    .nav_menu{
        width: 470px;
    }

    .nav_link i{
        font-size: 1.5rem;
    }

    .nav_link span{
        font-size: .8rem;
    }

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

    .form_container{
  
        width:90%;
        height: 90%;
        background-color: var(--bg-color);
        grid-template-columns:max-content;
        justify-content: center;
        margin: 1rem;
        margin-right: 2rem;
        padding: 1rem;
           
        }
    
    .form-group{
        padding-right: 2rem;
        }

}

/*------------ For large devices------------------ */
@media screen and (min-width: 1023px) {

   
    .section{
        padding: 7rem 0 1rem;
    }

    .section_title{
        margin-bottom: 4rem;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
    }
    .nav_menu{
        width:initial;
        margin-left: auto;
    }

    .nav_list{
        display: flex;
        column-gap: 3rem;
    }

    .nav_link{
        color: var(--text-color);
        font-weight: var(--font-medium);
        transition: .3s;
    }

    .nav_link i{
        display: none;
    }

    .nav_link:hover{
        color: var(--title-color);
        background-color: var(--bg-color-light);
        
    }

    .active-link{
        color: var(--title-color);
       /* text-decoration:line-through; */
    }

    .change-theme{
        margin-left: 3rem;
        color: var(--text-color);
    }

    .dark-theme .nav_menu{
        background-color: transparent;
        box-shadow: none;
    }

    .footer_content{
        grid-template-columns: repeat(4, max-content);
        column-gap: 5.5rem;
    }

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

    .footer_info{
        padding-bottom: 2rem;
        row-gap: 1rem;
    }
}
/*-----------------------------------------------*/
@media screen and (min-width: 1054px) {
    .container{
        margin-left: auto;
        margin-right: auto;
    }

    .form_container{
  
        width: 90%;
        height: 90%;
        background-color: var(--bg-color);
        grid-template-columns:max-content;
        justify-content: center;
        margin: 1rem;
        margin-right: 2rem;
        padding: 1rem;
           
        }
    
    .form-group{
        padding-right: 2rem;
        }

   

}

/*------------------------------------------------*/

@media screen and (min-width: 1124px){

    .nav_logo{  /*myself */
        width:20%;
        height: auto;
    }

    .nav_item span{ /*myself*/
        font-size: 1.25rem;
    }

    .scrollup{
        right: 3rem;
    }

    .show-scroll{
        bottom: 3rem;
    }

    .form_container{
  
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        grid-template-columns:max-content;
        justify-content: center;
        margin: 1rem;
        margin-right: 2rem;
        padding: 1rem;
           
        }
    
    .form-group{
        padding-right: 2rem;
        }
}

/*---------- For 2K resolutions (2048 x 1152, 2048 x 1536)------- */
@media screen and (min-width: 2048px) {
    body{
        zoom: 1.3;
    }
    
}

/*---- For 4K resolutions (3840 x 2160, 4096 x 2160)---------- */

@media screen and (min-width: 3840px) {
    body{
        zoom: 2.3;
    }
    
}