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

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

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(129, 67%, 62%);
    --first-color-alt: hsl(112, 89%, 53%);
    --title-color: hsl(233, 20%, 15%);
    --text-color: hsl(233, 4%, 35%);
    --body-color: hsl(124, 100%, 97%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Open Sans", sans-serif;
    --second-font: "Lemon", cursive;
    --biggest-font-size: 2.25rem;
    --normal-font-size: 0.938rem;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 3.5rem;
        --normal-font-size: 1rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

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

.main {
    overflow: hidden; /* For the animations */
}

/*=============== HEADER & NAV ===============*/
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}
.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo {
    font-family: var(--second-font);
    color: var(--first-color);
}
.nav__logo span {
    color: var(--title-color);
}
.nav__toggle {
    display: inline-flex;
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
}
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: var(--body-color);
        left: 0;
        top: -100%;
        box-shadow: 0 8px 24px hsla(139, 100%, 35%, 0.2);
        width: 100%;
        padding: 3.5rem 0 3rem;
        border-radius: 0 0 2rem 2rem;
        transform: top 0.4s;
    }
}
.nav__list {
    display: flex;
    flex-direction: column;
    text-align: center;
    row-gap: 2rem;
}
.nav__link,
.nav_close {
    color: var(--title-color);
}
.nav__link {
    font-weight: 600;
    transition: color 0.4s;
}
.nav__link:hover {
    color: var(--first-color);
}
.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.nav__img {
    position: absolute;
    width: 100px;
    top: -0.75rem;
    left: 1.5rem;
}
/* Show menu */
.show-menu {
    top: 0;
}
/* Active link */
.active-link {
    color: var(--first-color);
}
/*=============== HOME ===============*/
.home,
.home__container {
    position: relative;
}
.home__container {
    padding-top: 8rem;
    height: 100vh;
    display: grid;
    row-gap: 1rem;
}
.home__title {
    font-size: var(--biggest-font-size);
    font-family: var(--second-font);
    color: var(--title-color);
    margin-bottom: 0.75rem;
}
.home__title span {
    display: block;
    color: var(--first-color);
}
.home__description,
.home__button {
    font-weight: 600;
}
.home__description {
    color: var(--title-color);
    margin-bottom: 1.5rem;
}
.home__button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 1.5rem 0.25rem;
    box-shadow: 0 8px 20px hsla(137, 100%, 45%, 0.28);
    transition: background 0.4s;
}
.home__button:hover {
    background-color: var(--first-color-alt);
}
.home__images {
    position: relative;
    width: 325px;
    height: 378px;
    justify-self: center;
}
.home__images img {
    position: absolute;
}
.home__liquid {
    max-width: initial;
    width: 340px;
    left: -0.5rem;
}
.home__juice {
    width: 140px;
    transform: rotate(15deg);
    left: 1rem;
    right: 0;
    top: 1rem;
    margin: 0 auto;
    animation: float-juice 4s ease-in-out infinite;
}
.home__apple2 {
    width: 90px;
    right: 1.5rem;
    bottom: 3.5rem;
}
.home__apple1 {
    width: 100px;
    transform: rotate(-25deg);
    top: 7rem;
    left: 0.65rem;
}
.home__leaf:nth-child(1),
.home__leaf:nth-child(6) {
    width: 50px;
    transform: rotate(30deg);
}

.home__leaf:nth-child(2),
.home__leaf:nth-child(4),
.home__leaf:nth-child(5) {
    width: 40px;
}
/* Move sheets into position */
.home__leaf:nth-child(1) {
    top: -7rem;
    right: 3rem;
}
.home__leaf:nth-child(2) {
    transform: rotate(-60deg);
    top: 1.5rem;
    left: 1.25rem;
}
.home__leaf:nth-child(3) {
    width: 20px;
    transform: rotate(-15deg);
    top: 8rem;
    right: 5rem;
}
.home__leaf:nth-child(4) {
    top: 4rem;
    left: 3rem;
}
.home__leaf:nth-child(5) {
    transform: rotate(-30deg);
    bottom: 0;
    right: 5rem;
}
.home__leaf:nth-child(6) {
    bottom: -5rem;
    left: 3rem;
}
.home__shape-small,
.home__shape-big {
    background-color: hsl(123, 100%, 88%);
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}
.home__shape-small {
    width: 200px;
    height: 200px;
    top: -5rem;
    left: -5rem;
}
.home__shape-big {
    width: 250px;
    height: 250px;
    top: 17rem;
    right: -8rem;
}
.home__shape-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    mix-blend-mode: soft-light;
}
/* Animation juice */
@keyframes float-juice {
    0% {
        transform: translateY(0) rotate(15deg);
    }
    50% {
        transform: translateY(-1.5rem) rotate(15deg);
    }
    100% {
        transform: translateY(0) rotate(15deg);
    }
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 330px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .home__images {
        width: 245px;
        height: 320px;
    }
    .home__liquid {
        width: 250px;
        left: 0;
    }
    .home__juice {
        width: 100px;
    }
    .home__apple1,
    .home__apple2 {
        width: 70px;
    }
}

/* For medium devices */
@media screen and (min-width: 767px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    .nav__toggle,
    .nav__close,
    .nav__img {
        display: none;
    }
    .nav__list {
        flex-direction: row;
        column-gap: 3rem;
    }
    .home__container {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        align-items: center;
        column-gap: 4rem;
        padding-top: 4rem;
    }
}
/* For large devices */
@media screen and (min-width: 1024px) {
    .home__images {
        width: 530px;
        height: 590px;
    }
    .home__liquid {
        width: 530px;
    }
    .home__juice {
        width: 220px;
        top: 1.5rem;
        left: 0;
    }
    .home__apple1 {
        width: 180px;
        top: 10rem;
        left: -1rem;
    }
    .home__apple2 {
        width: 185px;
        right: 0.5rem;
        bottom: 5.5rem;
    }
    .home__leaf:nth-child(1),
    .home__leaf:nth-child(6) {
        width: 70px;
    }
    .home__leaf:nth-child(2),
    .home__leaf:nth-child(4),
    .home__leaf:nth-child(5) {
        width: 60px;
    }
    .home__leaf:nth-child(1) {
        top: -1rem;
        right: 2rem;
    }
    .home__leaf:nth-child(2) {
        top: 2.5rem;
        left: 2.25rem;
    }
    .home__leaf:nth-child(3) {
        width: 40px;
        top: 12rem;
        right: 10rem;
    }
    .home__leaf:nth-child(4) {
        bottom: 8rem;
        left: 4.5rem;
    }
    .home__leaf:nth-child(5) {
        right: 10rem;
    }
    .home__leaf:nth-child(6) {
        bottom: 1rem;
        left: -8rem;
    }
    .home__shape-small {
        width: 400px;
        height: 400px;
        top: 0;
        left: -15rem;
    }
    .home__shape-big {
        width: 500px;
        height: 500px;
        top: 22rem;
        right: -14rem;
    }
}
@media screen and (min-width: 1048px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}
