/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
/* Variables */
:root {
    --header-height: 4rem;

    /* Colors */
    --first-color: #9f496e;
    --first-color-alt: #647295;
    --title-color: #2b262d;
    --text-color: #647295;
    --text-color-light: #a6a6a6;
    --body-color: #f2ebe5;
    --container-color: #ffffff;

    /* Font and Typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;

    /* Font Weight */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Margins */
    --mb-1: 0.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: 768px) {
    :root {
        --biggest-font-size: 4rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
    }
}

/* Base */
*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Dark Theme */
body.dark-theme {
    --title-color: #647295;
    --text-color: #c7d1cc;
    --body-color: #2b262d;
    --container-color: #4e4552;
}
.change-theme {
    position: absolute;
    right: 1rem;
    top: 1.8rem;
    color: var(--text-color);
    font-size: 1rem;
    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,
p,
ul {
    margin: 0;
}

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-subtitle {
    text-align: center;
}

.section-title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.section-subtitle {
    display: block;
    color: var(--first-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

/* Layout */
.bd-container {
    max-width: 960px;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}

.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 {
    max-width: 1024px;
    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;
        width: 100%;
        padding: 1.5rem 0 1rem;
        text-align: center;
        background-color: var(--body-color);
        transition: 0.4s;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 1rem 1rem;
        z-index: var(--z-fixed);
    }
}

.nav__item {
    margin-bottom: var(--mb-2);
}

.nav__link,
.nav__toggle {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
}

.nav__logo {
    color: var(--first-color);
    font-family: 'Lobster', cursive;
    font-weight: 400;
    font-size: 1.5rem;
}

.nav__logo:hover {
    color: var(--first-color-alt);
}

.nav__link {
    transition: 0.3s;
}

.nav__link:hover {
    color: var(--first-color-alt);
}

.nav__toggle {
    font-size: 2rem;
    cursor: pointer;
    margin-right: 40px;
}

/* Show Menu */
.show-menu {
    top: var(--header-height);
}

/* Active Menu */
.active-link {
    color: var(--first-color-alt);
}

/* Change Background Header */
.scroll-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll Top */
.scrolltop {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3rem;
    background: #9f496e;
    border-radius: 0.4rem;
    z-index: var(--z-tooltip);
    transition: 0.4s;
    visibility: hidden;
}

.scrolltop:hover {
    background-color: #647295;
}

.scrolltop__icon {
    font-size: 1.8rem;
    color: #f2ebe5;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f2ebe5;
}
::-webkit-scrollbar-thumb {
    background: #9f496e;
}

/* Show scrolltop */
.show-scroll {
    visibility: visible;
    bottom: 2rem;
    right: 2.5rem;
}

/* Home */
.home__container {
    height: calc(100vh - var(--header-height));
    color: var(--first-color);
    margin-bottom: var(--mb-1);
    margin-top: 30%;
}

.home__data {
    animation-name: text;
    animation-duration: 1.5s;
}

@keyframes text {
    0% {
        transform: translateX(-500px) translateY(-80px) scale(0.05);
    }
    100% {
        transform: translateX(40px) scale(1);
    }
}

.home__title {
    font-size: var(--h2-font-size);
    color: var(--first-color-alt);
    margin-bottom: var(--mb-1);
}

.home__subtitle {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-4);
}

.home__img {
    justify-self: center;
    align-self: center;
    border-radius: 0.5rem;
    margin-right: 30%;
    height: 300px;

    animation: slideIn 1.5s ease-in-out forwards;
}

@keyframes slideIn {
    0% {
        transform: translateX(500px) translateY(-80px) scale(0.05);
    }
    100% {
        transform: translateX(50px) scale(1);
    }
}

.social__media {
    text-align: center;
    margin-right: -40px;
}

.home__social {
    font-size: 4rem;
    color: var(--title-color);
    margin-right: 2rem;
}

.home__social:hover {
    color: var(--first-color-alt);
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: 0.3s;
}

.button:hover {
    background-color: var(--first-color-alt);
    padding: 0.75rem 2rem;
}

/* About */
.about__data {
    text-align: center;
}

.about__description {
    margin-bottom: var(--mb-3);
}

.about__img {
    width: 450px;
    height: 300px;
    border-radius: 0.5rem;
    justify-self: center;
}

.about__container {
    animation-name: about;
    animation-duration: 1.5s;
}

@keyframes about {
    0% {
        transform: translateX(0) translateY(400px) scale(0.05);
    }
    100% {
        transform: translateX(50px) scale(1);
    }
}

/* Services */
.services__container {
    row-gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220, 1fr));
}

.services__content {
    text-align: center;
}

.services__img {
    width: 64px;
    height: 64px;
    fill: var(--first-color);
    margin-bottom: var(--mb-2);
}

.services__title {
    font-size: var(--h3-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.services__description {
    padding: 0 1.5rem;
}

/* Menu */
.menu__container {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
}

.menu__content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--container-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(3, 74, 40, 0.15);
    padding: 0.75rem;
}

.menu__img {
    width: 100px;
    height: 100px;
    align-self: center;
    margin-bottom: var(--mb-2);
    border-radius: 0.5rem;
}

.menu__name,
.menu__price {
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.menu__name {
    font-size: var(--normal-font-size);
}

.menu__detail,
.menu__price {
    font-size: var(--small-font-size);
}

.menu__detail {
    margin-bottom: var(--mb-1);
}

.menu__button {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    padding: 0.625rem 0.813rem;
    border-radius: 0.5rem 0 0.5rem 0;
}

/* App */
.app__data {
    text-align: center;
    top: 0;
    right: 0;
}

.app__description {
    margin-bottom: var(--mb-5);
}

.app__stores {
    margin-bottom: var(--mb-4);
}

.app__store {
    width: 120px;
    margin: 0 var(--mb-1);
}

.app__img {
    width: 120px;
    height: 120px;
}

/* Contact */
.contact__container {
    text-align: center;
}

.contact__description {
    margin-bottom: var(--mb-3);
}

.contact__img img {
    height: 300px;
    border-radius: 0.5rem;
}

/* Footer */
.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 2rem;
    justify-items: center;
    text-align: center;
}

.footer__logo {
    font-size: 1.8rem;
    color: var(--first-color);
    font-family: 'Lobster', cursive;
    font-weight: 400;
}

.footer__description {
    display: block;
    font-size: var(--small-font-size);
    margin: 0.25rem 0 var(--mb-3);
    text-align: center;
}

.footer__social {
    font-size: 3rem;
    color: var(--title-color);
    margin-right: var(--mb-2);
}

.footer__title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-2);
}

.footer__link {
    display: inline-block;
    color: var(--text-color);
    margin-bottom: var(--mb-1);
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__copy {
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 3.5rem;
}

/* Media Queries */
@media screen and (min-width: 576px) {
    .home__container,
    .about__container,
    .app__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .about__data,
    .about__initial,
    /* .app__data, 
     .contact__initial,
     .contact__container, */
     .app__initial {
        text-align: initial;
    }

    .about__img,
    .app__img {
        width: 380px;
        order: -1;
    }

    .contact__container {
        grid-template-columns: 1.75fr 1fr;
        align-items: center;
    }
    .contact__button {
        justify-self: center;
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
        font-size: 1.5rem;
    }

    .section {
        padding-top: 8rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    .nav__list {
        display: flex;
    }
    .nav__item {
        margin-left: var(--mb-5);
        margin-bottom: 0;
    }
    .nav__toggle {
        display: none;
    }

    .nav__logo {
        color: var(--first-color);
        font-family: 'Lobster', cursive;
        font-weight: 400;
        font-size: 2.5rem;
    }

    .change-theme {
        position: initial;
        margin-left: var(--mb-2);
    }

    .home__container {
        height: 100vh;
        justify-items: center;
        margin-top: 0;
    }

    .social__media {
        text-align: center;
    }

    .home__social {
        font-size: 4rem;
        color: var(--title-color);
        margin-right: 3rem;
    }

    .services__container,
    .menu__container {
        margin-top: var(--mb-6);
    }

    .menu__container {
        grid-template-columns: repeat(3, 210px);
        column-gap: 4rem;
    }
    .menu__content {
        padding: 1.5rem;
    }
    .menu__img {
        width: 130px;
    }

    .app__store {
        margin: 0 var(--mb-1) 0 0;
    }

    .app__img {
        width: 220px;
        height: 220px;
    }
}

@media screen and (min-width: 960px) {
    .bd-container {
        margin-left: auto;
        margin-right: auto;
    }

    .home__img {
        width: 500px;
    }

    .about__container,
    .app__container {
        column-gap: 7rem;
    }
}

/* For tall screens */
@media screen and (min-height: 721px) {
    .home__container {
        height: 640px;
    }
}
