@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --dark-green: #57aDAF;
    --light-green: #7EC5C7;
    --dark-yellow: #E0D36F;
    --light-yellow: #F3F2C8;
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100dvh;
    background: var(--light-green);
    background-image: url("./images/bg.png");
    background-position: center;
    font-family: "Poppins", sans-serif;
}


#main-container {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: 10vh auto 10vh;
    grid-template-columns: 1fr;
    grid-template-areas: 'header'
        'main'
        'bottom';
    border: 1px solid black;
    overflow: hidden;
}

/* header */
#header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    position: relative;
}


#header .icon{
    color: var(--light-yellow);
    font-weight: 100;
    padding: 10px 20px;
    font-size: 1.5rem;
}

#header .menu ul {
    position: fixed;
    width: 500px;
    list-style-type: none;
    transform: rotate(90deg);
    right:-25px;
    top:80px;
    transition: all 0.3s ease;
}

#header .menu{
    z-index: 4;
}

#header .menu ul li a{
    text-decoration: none;
    color: var(--light-yellow);
    font-size: 2rem;
    display: inline-block;
    transition: all 0.2s ease;
}

#header .menu ul li a:hover{
color: var(--dark-yellow);
}

#header .menu ul li a:hover::after{
    content:" ●";
    }

#header .menu-toggle{
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    border:1px solid var(--dark-yellow);
    border-radius: 50%;
    background-color: var(--dark-yellow);
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

#header .menu-toggle span{
    width: 23px;
    height: 2px;
    background-color: rgb(255, 255, 255);
    display: inline-block;
    position: relative;
}

#header .menu-toggle span::before{
    content:'';
    width: 23px;
    height: 2px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    bottom: 7px;
}

#header .menu-toggle span::after{
    content:'';
    width: 23px;
    height: 2px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    top: 7px;
}




.logo-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img{
    width: 5%;
    min-width: 150px;
    transition: all 0.5s ease;
}



/* main */
#main {
    min-width: 100%;
    height: 100%;
    grid-area: main;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


#main::before {
    content: "HEALTH COMES FROM FOOD";
    position: absolute;
    left: -50px;
    font-size: clamp(80px, 15vw, 180px);
    white-space: nowrap;
    color: rgba(87, 173, 175, 0.6);
    z-index: 2;
}

#main .main-pic {
    width: 13vw;
    min-width: 150px;
    height: auto;
    margin: 0 6vw;
}


#main .main-pic.pic1,
#main .main-pic.pic3 {
    transform: rotate(-14deg);
}


#main .main-pic.pic2,
#main .main-pic.pic4 {
    transform: rotate(14deg);
}


#main .hero {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main .hero img {
    width: 70%;
    max-width: 700px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    z-index: 3;
}

#main .hero .hero-1 {
    animation-name: rotate;
    animation-duration: 20s;
}

#main .hero .hero-2 {
    animation-name: rotate-reverse;
    animation-duration: 10s;
}


@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

    ;
}

@keyframes rotate {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

    ;
}

#bottom {
    grid-area: bottom;
}

.bottom-slogen{
    position: fixed;
    bottom: 0;
    padding: 50px;
}

.bottom-slogen h3{
    color: var(--light-yellow);
    font-size: clamp(30px,10vw,60px)
}
.bottom-slogen h4{
    color: var(--dark-green);
    font-size: clamp(15px,5vw,30px);
    margin-top: -20px;
    white-space: nowrap;
}





@media(max-width:1220px){
    #header .menu ul {
        /* display: none; */
        transform: translateX(100%) rotate(90deg);
        right:-25px;
        top:140px;
    }

    #header .menu ul li a{
        font-size: 20px;
    }

    
    #header .menu-toggle{
        display: flex;
        z-index: 99;
    }

    #header .menu-toggle{
        display: flex;
        z-index: 99;
    }


    #header .menu.open ul {
        /* display: none; */
        transform: translateX(0) rotate(90deg);
        right:-120px;
        background-image:linear-gradient(to bottom, rgba(144, 201, 201, 0.89),rgba(255,255,255,0));
        border-radius: 0 0 20px 0;
    }


    #header .menu-toggle.open{
       right: 250px;
       top:5px;
    }

    #header .menu-toggle.open span{
        background-color:transparent;
    }

    #header .menu-toggle.open span::before{
        transform: rotate(45deg);
        bottom:0;
    }

    #header .menu-toggle.open span::after{
        transform: rotate(-45deg);
        top:0;
    }


}





@media(max-width:870px){
    .logo-container img{
        margin-top: 200px;
        width: 190px;
    }


}


