/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* VARIABLES CSS */
:root {
    --header-height: 3rem;

    /* Colors */
    --first-color: #5F5F5F;
    --first-color-alt: #404040;
    --first-color-send: #161212;
    --title-color: #161212;
    --text-color: #5B5757;
    --text-color-light: #8F8A8A;
    --body-color: #FEFBFB;
    --container-color: #FFF;
    --home-color: #D9D9DB;

    /* Font annd typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    /* font weight */
    --font-semi-bold: 600;
    --font-bold: 700;

    /* margenes */
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;

    /* z index */

    --z-tooltip: 10;
    --z-fixed: 100;

}

@media screen and (min-width: 968px){
    :root{
        --biggest-font-size: 3rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}

/* BASE */
*,::before,::after{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

/* Variables Dark Theme */
body.dark-theme{
    --first-color-send: #181818;
    --title-color: #f3f1f1;
    --text-color: #d1c7c8;
    --body-color: #090B09;
    --container-color: #B1B1B1;
}

/* Button Dark/Light */
.change-theme{
    position: absolute;
    right: 1.5rem;
    top: 2.2rem;
    display: flex;
    font-size: 2rem;
    cursor: pointer;
}

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);
    line-height: 1.6;
}

h1,h2,h3,ul,p{
    margin: 0;
}

h2,h3{
    font-weight: var(--font-semi-bold);
    color: var(--title-color)
}

h1{
    font-weight: var(--font-semi-bold);
}

ul{
    padding: 0;
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto; 
}

/* CLASS CSS */
.section{
    padding: 4rem 0 2rem;
}

.section-title, .section-title-center{
    font-size: var(--h2-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: var(--mb-3);
}

/* Layout */
.l-main{
    overflow: hidden;
}

.bd-container{
    max-width: 1400px;
    width: calc(100% - 3rem);
    margin-left: var(--mb-3);
    margin-right: var(--mb-3);
}

.bd-grid{
    display: grid;
    gap: 1.5rem;
}

.l-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
}

/* NAV */
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: -100%;
        left: 0;
        right: 0;
        width: 90%;
        margin: 0 auto;
        padding: 2.5rem 0 0;
        text-align: center;
        background-color: var(--body-color);
        transition: .4s;
        box-shadow: 0 0 4px rgba(0,0,0,.1);
        border-radius: 2rem;
        z-index: var(--z-fixed);
    }
}

.nav__item{
    margin-bottom: var(--mb-3);
}

.nav__link, .nav__logo, .nav__toggle{
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.nav__logo:hover{
    color: var(--first-color);
}

.nav__link{
    transition: .3s;
}

.nav__link:hover{
    color: var(--first-color);
}

.nav__toggle{
    font-size: 1.3rem;
    cursor: pointer;
}

/* Show menu */
.show-menu{
    top: calc(var(--header-height) + 1rem);
}

/* Active menu link */
.active-link{
    position: relative;
}

.active-link::before{
    content: '';
    position: absolute;
    bottom: -.75rem;
    left: 45%;
    width: 5px;
    height: 5px;
    background-color: var(--title-color);
    border-radius: 50%;
}

/* Change background header */
.scroll-header{
    box-shadow: 0 1px 4px rgba(0,0,0,.1);

}

/* Scroll top */
.scrolltop{
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .3rem;
    background: #8D8C8D;
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    /* visibility: hidden; */
}

.scrolltop:hover{
    background-color: var(--first-color);
}

.scrolltop__icon{
    font-size: 1.5rem;
    color: var(--body-color);
}

.show-scroll{
    visibility: visible;
    bottom: 1.5rem;
}

/* HOME */

.home{
    background-color: #E4E4E4;
    box-shadow: 0 2px 6px rgba(65, 11, 16, .15);
    border-radius: 1rem;
    margin-bottom: var(--mb-2);
}

.home__data{
    border-left: 4px solid var(--first-color-alt);
    color: var(--first-color-alt);
    padding-left: 1.5rem;
    z-index: var(--z-tooltip);
    margin-right: -200px;
    
}

.home__img{
    width: 280px;
    justify-self: center;
    margin-bottom: -7px;
} 

.home__name{
    font-size: var(--biggest-font-size);
    
}

.home__greeting, .home__profession{
    display: block;
    font-weight: var(--font-bold);
}

.home__greeting{
    font-size: .813rem;
}

.home__profession{
    font-size: .938rem;
    margin-bottom: var(--mb-3);
}

/* BUTTONS */
.button{
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    font-weight: var(--font-semi-bold);
    transition: .3s;
}

.button:hover{
    background-color: var(--first-color-alt);
}

.button-link{
    background: none;
    padding: 2px 4px;
    color: var(--first-color);

}

.buttom-link:hover{
    background-color: transparent;
    color: var(--first-color-alt);
}

/* ABOUT */
.about__data{
    text-align: center;
}

.about__description span{
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    margin-bottom: var(--mb-2);
}

.about__number{
    font-size: var(--biggest-font-size);
    color: var(--first-color);
    display: block
}

.about__img{
    width: 100%;
    justify-self: center;
}

/* LANGUAGE */
.language__container{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: black;
    border-radius: 1rem;
  }
  .text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .language__data:hover .overlay {
    opacity: .9;
    box-shadow: 0 3px 12px rgba(65,11,16,.15);
    cursor: pointer;
  }

.language__data{
    text-align: center;
    padding: 1rem 1rem 2rem;
    background-color: var(--container-color);
    box-shadow: 0 2px 6px rgba(65, 11, 16,.15);
    border-radius: 1rem;
}


.language__img{
    width: 180px;
}

.language__title{
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

/* Accessories */
.accessory__container{
    grid-template-columns: repeat(2,1fr);
    padding-bottom: 2rem;
}

.overlay2 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: black;
  }
  .text2 {
    color: white;
    font-size: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 95%;
  }

  .text3{
      font-weight: bold;
  }

  .icon{
      color: white;
      font-size: 35px;
      transition: .5s;
      margin:0 .5rem;
  }

  .icon:hover{
      color:#2581FA;
  }

  .accessory__content:hover .overlay2 {
    opacity: .9;
    box-shadow: 0 3px 12px rgba(65,11,16,.15);
    cursor: pointer;
  }


.accessory__content{
    position: relative;
    display: grid;
    height: 100%;
    min-height: 50;
    background-color: var(--container-color);
    box-shadow: 0 2px 6px rgba(65, 11, 16, .15);
}

.accessory__content:hover{
    box-shadow: 0 3px 12px rgba(65, 11, 16, .15);
    cursor: pointer;
    
}

.accessory__img{
    width: 100%;
    overflow: hidden;
}
.accessory__img:hover{
    transform: scale(1.1);
}

.accessory__title, .accessory__category{
    text-align: center;
}

.accessory__title{
    font-size: var(--normal-font-size);
}

.accessory__category{
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
    color: var(--text-color-light);
}

.accessory__price{
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.accessory__button{
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    font-size: 1.25rem;
    padding: .5rem .625rem;
    border-radius: 1rem 0 1rem 0;
}

/* SEND GIFT */
.send{
    background-color: var(--first-color-send);
}

.send__title, .send__description{
    color: #FFF;
}

.send__description{
    text-align: center;
    margin-bottom: var(--mb-4);
}

.send__direction{
    display: flex;
    background-color: #FFF;
    padding: .5rem;
    border-radius: .5rem;
}

.send__input{
    width: 90%;
    outline: none;
    border: none;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
}

.send__input::placeholder{
    font-family: var(--body-font);
}

.send__img{
    width: 280px;
    justify-self: center;
}

/* FOOTER */
.footer__container{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo{
    color: var(--title-color);
}

.footer__title{
    margin-bottom: var(--mb-2);
}

.footer__logo, .footer__title{
    font-size: var(--h3-font-size);
}

.footer__link{
    display: inline-block;
    margin-bottom: .75rem;
    color: var(--text-color);
}

.footer__link:hover{
    color: #5F5F5F;
    margin-left: 10px;
    transition: all 0.3s;
}

.footer__social{
    font-size: 1.5rem;
    color: var(--title-color);
    margin-right: var(--mb-3);
}

.footer__social:hover{
    color: var(--first-color);
}

.footer__copy{
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 4rem;
}

 /* MEDIA QUIRIES */

 /* For full-screen images on small screens */

 
@media screen and (max-width: 359px){
     .home_img,
     .about__img,
     .send__img{
         width: 100%;
     }

}

@media screen and (min-width: 576px){
    .home__container,
    .about__container,
    .send__container{
        grid-template-columns: repeat(2,1fr);
        align-items: center;
    }

    .home__container{
        padding: 5rem 0 0;
    }

    .home__img{
        order: 1;
    }

    .send__description{
        text-align: initial;
    }

    .home__img,
    .about__img,
    .send__img{
        width: 100%;
    }

    .about__img{
        order: -1;
    }
}

@media screen and (min-width: 768px){
    body{
        margin: 0;
    }

    .section{
        padding-top: 7rem;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__list{
        display: flex;
        align-items: center;
    }

    .nav__item{
        margin-left: var(--mb-5);
        margin-bottom: 0;
    }

    .nav__toggle{
        display: none;
    }

    .change-theme{
        position: initial;
        margin-left: var(--mb-4);
    }


    .home__container{
        padding: 7rem 2rem 0;
    }

    .home__greeting{
        font-size: 1.25rem;
    }

    .home__profession{
        font-size: 1.3rem;
    }

    .about__container{
        padding: 0 2rem;
    }

    .accessory__container{
        grid-template-columns: repeat(3,224px);
        justify-content: center;
    }

    .accessort__content{
        padding: .5rem 1.5rem 1.5rem;
        
    }

    .accessory__img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .accessory__title, .accessory__category{
        text-align: initial;
    }

    .accessory__button{
        padding: .75rem;
    }

    .send{
        background: none;
    }

    .send__container{
        background-color: var(--first-color-send);
        padding: 2rem;
        border-radius: 1.5rem;
    }
}

@media screen and (min-width: 968px){
    .bd-container{
        margin-left: auto;
        margin-right: auto;
    }

    .home_img,
    .send__img{
        width: 469px;
    }


    .home__container,
    .about__container,
    .send__container{
        column-gap: 5rem;
    }

    .home__greeting{
        font-size: 1.25rem;
    }

    .home__profession{
        font-size: 2rem;
    }

    .about__container{
        margin-bottom: 5rem;
    }
    
    .accessory__container{
        grid-template-columns: repeat(4,1fr);
        padding-bottom: 2rem;
    }
    .accessory__img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .accessory__title, .accessory__category{
        text-align: center;
    }
}


@media screen and (max-width: 1024px){
    
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: black;
    border-radius: 1rem;
  }
  .text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .language__data:hover .overlay {
    opacity: .9;
    box-shadow: 0 3px 12px rgba(65,11,16,.15);
    cursor: pointer;
  }

}