/*====== Google Fonts======= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ======Variable css========*/
:root{

    --header-height: 3.5rem;
    
    /*======= Colours======*/
    
    --first-color: hsl(355, 70%, 54%);
    --first-color-alt: hsl(355, 64%, 50%);
    --title-color: hsl(355, 4%, 15%);
    --text-color: hsl(355, 4%, 35%);
    --text-color-light: hsl(355, 4%, 55%);
    --body-color: #fff;
    --container-color: #fff;

    /*========Font and typography======*/

    --body-font: 'Poppins', sans-serif;

    --biggest-font-size: 1.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:600;
    --font-semi-bold:500;

    /*========MArgenes-bottom========*/

    --mb-0-25: 0.25rem;
    --mb-0-5:0.5rem;
    --mb-1:1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5:2.5rem;

    /*========z-index========*/

    --z-tooltip:10;
    --z-fixed: 100;

}

/*  Reaponsive Typography    */

@media screen and (min-width:968px){
:root
{
    --biggest-font-size:2.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;
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
}

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

body{
    margin: var(--header-height) 0 0 0;
    background-color: var(--body-color);
    color: var(--text-color);
    transition: .4s; /*for theme change animation*/
}

h1,h2,h3{
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
img{
    max-width: 100%;
    height: auto;
}

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

/*======Theme Change Button=====*/

.nav__btns{
    display: flex;
    align-items: center;
    column-gap: 1.1rem;
}

.change-theme{
    color: var(--title-color);
    font-size: 1.25rem;
    cursor: pointer;
}

/*========Variables Dark Theme========*/

body.dark-theme{
  
    --title-color: hsl(355, 4%, 95%);
    --text-color: hsl(355, 4%, 75%);
    --body-color: hsl(355, 20%, 12%);
    --container-color: hsl(355, 16%, 16%);;

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

.dark-theme .message__input{
    background-color: var(--body-color);
}

.dark-theme .message__button{
    background-color: var(--first-color);
}
.dark-theme .message__button:hover{
    background-color: var(--first-color-alt);
}
/*==========Reusable css classes========*/

.container{
    max-width: 968px;
   margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid{
    display: grid;
}

.main{
    overflow: hidden;
}

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

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

/*=========Header=========*/
.header{
    width: 100%;
    background-color: var(--body-color);
    top: 0;
    left: 0;
    position: fixed;
    z-index: var(--z-fixed);
    transition: .4s; /*for theme change animation*/
}

/*=========Nav==========*/

.nav{
height: var(--header-height);
display: flex;
justify-content: space-between;
align-items: center;
}
.nav__logo,
.nav__close,
.nav__toggle{
    color: var(--title-color);

}
.nav__logo{
   display: flex; 
   align-items: center;
   column-gap: .25rem;
   font-weight: var(--font-medium);
}
.nav__logo-img{
    width: 1.5rem;
}  

.nav__toggle{
    display: inline-flex;
    font-size: 1.25rem;
    cursor: pointer;
}

@media screen and (max-width: 767px)
{
    .nav__menu{
        position: fixed;
        background-color: var(--body-color);
        top: -100%;
        left: 0;
        width: 100%;
        padding: 4rem 0;
        border-radius: 0 0 1.5rem 1.5rem;
        box-shadow:0 1px 4px hsla(0, 4%, 15%, .1);
        transition: .4s;
    }
}

.nav__overlay{
    position: absolute;
    width: 100px;
    left: 0;
    top: 0;
    transform: rotate(-15deg);
}

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

}

.nav__link{
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
}
.nav__link:hover{
    color: var(--first-color);
}

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

.show-menu{
    top: 0;
}


/*=========Home========*/

.home__container{
    padding-top: 1.5rem;
    row-gap: 1.5rem;
}

.home__img{
    width: 320px;
    justify-self: center;
}

.home__data{
    text-align: center;
}
 .home__title{
     font-size: var(--biggest-font-size);
     line-height: 140%;
     margin-bottom: var(--mb-0-5);
 }

 .home__description{
     font-size: var(--small-font-size);
     padding: 0 2rem;
     margin-bottom: var(--mb-2-5);
 }

 /*=======Buttons========*/

 .button{
    display: inline-block;
    background-color: var(--first-color);
    color:#fff;
    padding: 1.15rem 2.75rem;
    border-radius: 3rem;
    font-weight: var(--font-medium);
    transition: .3s;

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

.giving__container{
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
}

.giving__content{
    text-align: center;
}
.giving__img{
    width: 100px;
    transition: .3s;
}

.giving__img:hover{
    transform: translateY(-0.25rem);
}

.giving__title{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-5);
}

.giving__description{
    font-size: var(--small-font-size);
}

/*=========Celebrate=======*/
 .celebrate__container{
     row-gap: 1rem;
 }

 .celebrate__data{
     text-align: center;
 }

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

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

 .celebrate__img{
     width: 280px;
     justify-self: center;
 }


/*=========Gift=========*/

.gift__container{
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gift__card{
    display: grid;
    position: relative;
    background-color: var(--container-color);
    box-shadow: 0 4px 16px hsla(355, 25%, 15%, .1);
    padding: 1.5rem 1rem 1.5rem;
    border-radius: .75rem;
}

.gift__img{
    width: 100px;
    justify-self: center;
    margin-bottom: var(--mb-0-25);
    transition: .3s;
}

.gift__card:hover .gift__img{
    transform: translateY(-0.25rem);
}

.gift__icon{
    font-size: 1.25rem;
    color: var(--first-color);
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
}

.gift__price{
    font-size: var(--h3-font-size);
}

.gift__description{
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

/*========Message=========*/
 .message__container{
     row-gap: 3rem;
     background-color: var(--first-color);
     padding: 2.5rem 1.5rem 2.5rem;
     border-radius: 1.25rem;
 }

 .message__form{
     text-align: center;
 }

 .message__title{
     margin-bottom: var(--mb-1-5);
     color: #fff;
 }

 .message__input{
    width: 100%;
    background: #fff;
    color: var(--text-color);
    padding: 1rem 1.5rem ;
    border-radius: 3rem;
    border: none;
    outline: none;
    margin-bottom: 1rem;
 }

 .message__button{
     background-color: var(--title-color);
     width: 100%;
 }
 .message__img{
     width: 200px;
     justify-self: center;
     transform: rotate(15deg);
 }

/*========Footer=========*/

.footer{
    overflow: hidden;
}
.footer__container{
    position: relative;
    row-gap: 2rem;

}
.footer__logo{
    display: flex;
    align-items: center;
    column-gap: .25rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.footer__logo-img{
    width: 1.5rem;
}

.footer__description{
    font-size: var(--small-font-size);
}

.footer__logo,
.footer__title{
    margin-bottom: var(--mb-1);
}

.footer__title{
    font-size: var(--h3-font-size);
}

.footer__links,
.footer__available{
    display: flex;
    flex-direction: column;
    row-gap: .75rem;
}

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

.footer__available-img{
    width: 100px;
    cursor: pointer;
}

.footer__copy{
    display: block;
    text-align: center;
    margin: 3.5rem 0 1rem 0;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

/*===========Breakpoints============*/

/*--------For Small Devices---------*/

@media screen and (max-width:320px){
.container{
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
}
.giving__container{
    gap: 1rem;
}

.gift__container{
    grid-template-columns: 150px;
    justify-content: center;
}

}


/*------For Medium Devices----------*/
@media screen and (min-width:576px){
    .home__description{
        padding: 0 8rem;
    }

    .giving__container{
        grid-template-columns: repeat(2, 142px);
        justify-content: center;
        gap: 1.5rem;
    }

    .celebrate__description{
        padding: 0 4rem;
    }
    .gift__container{
        grid-template-columns: repeat(2, 180px);
        justify-content: center;
        gap: 2rem;
    }
    .message__input,
    .message__button{
        width: 60%;
    }

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

@media screen and (min-width:767px){
    body{
        margin: 0;
    }
    .section{
        padding: 6.5rem 0 2rem;
    }
    .nav{
        height: 3.5rem;
        column-gap: 3rem;
    }
    .nav__toggle,
    .nav__close,
    .nav__overlay
    {
        display: none;
    }
    .nav__menu{
        margin-left: auto;
    }
    .nav__list{
        flex-direction: row;
        column-gap: 3rem;
    }
    .home__container,
    .celebrate__container
    {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        padding-top: 8rem;
    }
    .home__data{
        text-align: initial;
    }
    .home__description{
        padding: 0;
    }
.giving__container{
    grid-template-columns: repeat(3, 142px);
    column-gap: 5rem;
   
}
.celebrate__data{
    padding-top: 3rem;
}
    .celebrate__data,
    .celebrate__title{
        text-align: initial;

    }
    .celebrate__description{
        padding: 0;
    }
    .celebrate__img{
        
    }
    .gift__container{
        grid-template-columns: repeat(3, 200px);
        gap: 2.5rem;
        justify-content: center;

    }
    .message__container{
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    .footer__container{
        grid-template-columns: repeat(3,1fr);
    }
}

/*------FOr Large Devices-----------*/

@media screen and (min-width:992px){
    .container 
    {
        margin-left:auto;
        margin-right:auto
    }
    .home__container{
        column-gap: 1rem;
    }
    .home__img{
        width: 500px;
    }
    .home__data{
        padding-top: 5rem;
    }
    .home__description{
        padding-right: 8rem;

    }
    .giving__container{
        column-gap: 8rem;
        padding-top: 2rem;
    }
    .giving__img{
        width: 120px;
    }
    .celebrate__data{
        padding-top: 8rem;
    }
    .celebrate__description{
        padding-right: 7rem;
    }
    .celebrate__img{
        width: 450px;
    }
    .gift__container{
        padding-top: 2rem;
    }
    .gift__card{
        padding:2rem 1.5rem 1.5rem;
    }
    .gift__img{
        width: 120px;
        margin-bottom: var(--mb-1);
    }
    .gift__price{
        font-size: var(--small-font-size);
    }
    .message__container{
        padding: 3.5rem 3.5rem;
        
    }
    .message__form{
        text-align: initial;
    }
    .message__title{
        font-size: var(--h1-font-size);
    }

    .message__input{
        display: block;
        width: 280px;
    }
    .message__button{
        width: initial;
    }
    .message__img{
        width: 320px;
    }
    .footer__container{
        grid-template-columns: repeat(4, max-content);
        justify-content: space-between;
    }
    .footer__copy{
        margin-top: 7rem;
    }
}



