@import url('https://fonts.googleapis.com/css2?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');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    /* font-family: "Bebas Neue", serif; */
}

html{
    scroll-behavior: smooth;
}

:root{
    --text-color: #342b0c;
    --bg-color: #fefbeb;
    --inner-bg-color: #ede8d5;
    --btn-color: #f3c30e;
}

body{
    background: var(--bg-color);
}

/* Basic Styling */

li{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
    object-fit: cover;
}

.flex{
    display: flex;
    align-items: center;
}

.container{
    max-width: 85%;
    margin: auto;
}

.sections{
    padding-block: 3rem;
}

/* Navbar Styling */

.navbar{
    justify-content: space-between;
    height: 13vh;
}

.navlist{
    gap: 3rem;
}

.link{
    color: var(--text-color);
    font-size: .95rem;
}

.logo{
    font-size: 1.3rem;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 600;
}

.fa-ice-cream{
    font-size: 1.8rem;
}

.nav-icons{
    justify-content: center;
    gap: 1rem;
}

.hamburger{
    display: none;
}

.icon{
    background: var(--btn-color);
    color: var(--text-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    border: .1rem solid var(--btn-color);
    transition: .3s ease-in-out;
}

.icon:hover{
    background: transparent;
}

/* All Sections Styling */

/* Hero Section */

.hero{
    min-height: 120vh;
    background-image: url('./images/almonds.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    padding-top: 4rem;
    position: relative;
}

.inner-hero{
    background: var(--inner-bg-color);
    width: 100%;
    border-radius: 1.5rem;
    justify-content: center;
    padding: 2rem 3rem;
    position: relative;
    isolation: isolate;
}

h1{
    font-size: 14vw;
    letter-spacing: 1rem;
    text-transform: uppercase;
    color: var(--text-color);
    font-family: "Bebas Neue", serif;
}

.hero-center-image{
    position: absolute;
    left: 44%;
    top: 30%;
    transform: translateX(-50%);
    rotate: 30deg;
    width: 24vw;
    z-index: 2;
}

.hero-right-image,
.hero-left-image{
    position: absolute;
    width: 12vw;
    top: 0;
    
}

.hero-right-image{
    right: 0;
    z-index: -1;
}

.hero-left-image{
    left: 0;
}

/* Second Section */

h2{
    font-size: 5vw;
    letter-spacing: .1rem;
    text-transform: uppercase;
    color: var(--text-color);
    font-family: "Bebas Neue", serif;
}

.card-container{
    gap: 4rem;
    height: 80vh;
    align-items: flex-end;
}

.card{
    flex: 1;
    background: var(--inner-bg-color);
    padding: 10rem 2rem 2rem;
    border-radius: 1.2rem;
    position: relative;
}

.card-image{
    width: 16rem;
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.card .content{
    justify-content: space-between;
}

span{
    font-weight: bold;
    color: var(--text-color);
}

.dark-para{
    color: var(--text-color);
    font-size: 1rem;
}

.production{
    background: var(--text-color);
    text-align: center;
    position: relative;
    padding-block: 8rem;
    border-radius: 1.5rem;
}

.production h2{
    color: var(--bg-color);
}

.production p{
    padding-bottom: 1.8rem;
}

.btn{
    background: var(--btn-color);
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    border: .1rem solid var(--btn-color);
    border-radius: 100vw;
}

.light-para{
    text-align: center;
    font-size: 1.1rem;
    color: var(--bg-color);
}

.production-right-image{
    position: absolute;
    width: 23rem;
    bottom: 0;
    right: 2%;
}

.production-left-image{
    position: absolute;
    width: 25rem;
    bottom: 0;
    left: 0;
    z-index: 3;
}

/* Third Section */

.healthy-section{
    background: var(--inner-bg-color);
    padding-top: 5rem;
}

.milky-para{
    color: var(--text-color);
    font-size: 1rem;
    /* margin-bottom: 1rem; */
}

.milky-image{
    z-index: 3;
}

.milky-image img{
    display: block;
}

.healthy-section .content img{
    width: 15rem;
    display: block;
    float: right;
}

.healthy-section .container{
    align-items: flex-end;
}

/* Fourth Section */

.commitment{
    text-align: center;
    background-image: url('./images/leaves.png');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.commitment .container img{
    width: 29rem;
}

.commitment .container p{
    max-width: 650px;
    margin: auto;
}

/* Footer */

footer{
    background: var(--text-color);
    margin-top: 3rem;
    text-align: center;
    padding-block: 3rem;
}


@media screen and (max-width: 600px){
    .navlist{
        display: none;
    }

    .hamburger{
        display: block;
        font-size: 1.5rem;
    }
    .container{
        width: 98%;
    }
    .nav-icons{
        display: none;
    }
    .card-container{
        gap: 2rem;
        height: 100vh;
        /* align-items: flex-end; */
        flex-direction: column;
    }
    h1{
        font-size: 11vw;
        letter-spacing: .5rem;
    }

    .inner-hero{
        padding: 3rem 3rem;
        margin-top: 13%;
    }

    .hero{
        min-height: 100vh;
        background-size: 100%;
        padding-top: 2rem;
       
    }

    .hero-center-image{
        display: none;
    }

    .second-h2{
        text-align: center;
        padding-bottom: 10rem;

    }
    
    .card-container{
        gap: 10rem;  
    }

    .sections{
        margin-top: 5rem;
    }
    
    .card{
        padding: 10rem 1rem 1rem;
        margin: auto;
        width: 70%;
    }

    .card:nth-child(2){
        display: none;
    }
    
    .card-image{
        width: 12rem;
    }
    
    .production{
        padding-block: 3rem;
        border-radius: 1rem;
    }
    
    .production h2{
        color: var(--bg-color);
    }
    
    .production p{
        padding-bottom: 1.8rem;
    }
    
    .btn{
        margin-top: 1rem;
        padding: .8rem 2rem;
        font-size: 1rem;
        border-radius: 100vw;
    }
    
    .light-para{
        text-align: center;
        font-size: 1.1rem;
        color: var(--bg-color);
    }
    
    .production-right-image{
        width: 10rem;
        bottom: 0;
        right: 1%;
    }
    .production-left-image{
        width: 10rem;
        bottom: 0;
        right: 0%;
    }

    .healthy-section{
        padding-top: 5rem;
    }

    .healthy-section .container{
        flex-direction: column;
    }
    
    .milky-para{
        font-size: 1rem;
    }
    
    .milky-image img{
        display: block;
    }
    
    .healthy-section .content img{
        width: 15rem;
        display: block;
        float: right;
    }
    
    .healthy-section .container{
        align-items: flex-end;
    }

    .milky-image{
        order: 2;
    }
}