@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&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');

:root {
    --header-height: 3.5rem;
    --first-color: hsl(28,88%,62%);
    --first-color-alt: hsl(20, 84%, 62%);
    --title-color: hsl(0,0%,95%);
    --text-color: hsl(0,0%,75%);
    --text-color-light: hsl(0,0%,65%);
    --black-color: hsl(0,0%,6%);
    --body-color: hsl(0,0%,6%);
    --container-color: hsl(0,0%,10%);

    --body-font: 'Montserrat', sans-serif;
    --second-font: 'Poppins', sans-serif;
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;

    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    --z-tip: 10;
    --z-fixes: 100;
}

@media screen and (max-width: 1150px) {
    :root {
    --biggest-font-size: 5rem;
    --bigger-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    }
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
}

.loading-content h1 {
    color: black; 
}

.loading-content {
    text-align: center;
}

.loading-text {
    font-size: 24px;
    animation: loading 1.5s infinite;
    color: black;
}

@keyframes loading {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body,
button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

button {
    border: none;
    outline: none;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 1rem;
}

.section_title {
    font-size: var(--bigger-font-size);
    font-family: var(--second-font);
    margin-bottom: 1.5rem;
    text-align: center;
}

.main {
    overflow: hidden;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixes);
}

nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_logo {
    color: var(--first-color);
    font-size: var(--h2-font-size);
    font-family: var(--body-font);
    transition: color .4s;
}

.nav_logo:hover {
    color: var(--first-color-alt);
}

.nav_toggle,
.nav_close {
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;    
}

@media screen and (max-width: 1150px) {
    .nav_menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        background-color: hsl(0,0%,6%,.2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter:blur(16px) ;
        width: 80%;
        height: 100%;
        padding: 6rem 10rem 0;
        transition: right .4s;
    }

    .nav_list {
        flex-direction: column;
        width: 70%;
    }

    .nav_item {
        margin: 10px 0;
    }
}

.nav_menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
}

.nav_list {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    row-gap: 2.5rem; 
}

.nav_item {
    margin: 20px;
}
.nav_link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.nav_link:hover {
    color: var(--first-color);
}

.nav_close,
.nav_img-1,
.nav_img-2 {
    position: absolute;
}

.nav_close {
    top: 1rem;
    right: 1.5rem;
}

.nav_img-1 {
    width: 80px;
    top: 11rem;
    right: .75rem;
}

.nav_img-2 {
    width: 60px;
    top: 28rem;
    left: 6rem;
}

.show-menu {
    right: 0;
}

.blur-header::after {
    content: "";
    position: absolute;
    width: 1000%;
    height: 100%;
    background-color: hsla(0,0%,6%,.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    top: 0;
    left: 0;
    z-index: -1;
}

.home {
    position: relative;
    padding-top: 6.5rem;
}

.home_container {
    row-gap: 2rem;
}

.home_bg,
.home_shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.home_bg {
    object-fit: cover;
    object-position: center;
}

.home_shadow {
    background: linear-gradient(180deg,
                hsla(0,0%,0%,0) 0%,
                hsl(0,0%,6%) 100%);
}

.home_data {
    position: relative;
    text-align: center;
}

.home_title {
    font-size: var(--biggest-font-size);
    font-family: var(--second-font);
    margin-bottom: 1.5rem;
}

.home_cake {
    width: 50px;
    position: absolute;
    top: 15rem;
    left: 4rem;
}

.home_image {
   max-width: 400px;
   justify-self: center;
}

.home_footer,
.home_location,
.home_social {
    display: flex;
}

.home_footer {
    justify-content: space-between;
    align-items: center;
}

.home_location {
    align-items: center;
    column-gap: .5rem;
}

.home_location i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.home_location span {
    color: var(--title-color);
    font-size: var(--small-font-size);
}

.home_social {
    column-gap: 1rem;
}

.home_social a {
    color: var(--title-color);
    font-size: 1.5rem;
    transition: color .4s;
}

.home_social a:hover {
    color: var(--first-color);
}

.button {
    display: inline-flex;
    background-color: var(--first-color);
    color: var(--black-color);
    font-weight: var(--font-semi-bold);
    padding: 1.125rem 2rem;
    transition: background-color .4s;
}

.button:hover {
    background-color: var(--first-color-alt);
}

.about_container {
    row-gap: 4rem;
}

.about_data {
    position: relative;
    text-align: center;
}

.about_description {
    margin-bottom: 3rem;
}

.about_cake {
    width: 60px;
    position: absolute;
    bottom: 1rem;
    right: 0;
}

.about_img {
    width: 320px;
    justify-self: center;
}
.footer {
    padding-block: 3rem 2rem;
}

.footer_container {
    position: relative;
    row-gap: 4rem;
}

.footer_logo {
    display: inline-block;
    color: var(--first-color);
    font-size: var(--h2-font-size);
    font-family: var(--second-font);
    margin-bottom: .5rem;
    transition: color .4s;
}

.footer_logo:hover {
    color: var(--first-color-alt);
}

.footer_content {
    grid-template-columns: repeat(2, max-content);
    gap: 4rem 2rem;
}

.footer_title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.25rem;
}

.footer_list{
    display: grid;
    row-gap: .75rem;
}

.footer_info {
    font-style: normal;
}

.footer_social {
    display: flex;
    column-gap: 1rem;
}

.footer_social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color .4s;
}

.footer_social a:hover {
    color: var(--first-color);
}

.footer_img-1,
.footer_img-2 {
    position: absolute;
}

.footer_img-1 {
    width: 60px;
    top: 2.5rem;
    right: 1.5rem;
}

.footer_img-2 {
    width: 70px;
    top: 17rem;
    left: 9rem;
}

.footer_copy {
    display: block;
    margin-top: 6rem;
    text-align: center;
    font-size: var(--small-font-size);
}

::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(28, 12%, 15%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(28, 12%, 25%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(28, 12%, 35%);
}

@media screen and (max-width: 340px){
    .container {
        margin-inline: 1rem;
    }

    .home_title {
        font-size: 2.5rem;
    }

    .home_footer {
        flex-direction: column;
        row-gap: 2rem;
    }
}

@media screen and (max-width: 576px){
    .nav_menu {
        width: 50%;
    }

    .home_container {
        grid-template-columns: 360px;
        justify-content: center;
    }

    .footer_content {
        grid-template-columns: repeat(3, max-content);
    }
}

@media screen and (min-width: 768px){
    .home {
        padding-top: 3rem;
    }

    .home_container {
        grid-template-columns: repeat(2, 350px);
        align-items: center;
    }

    .home_date {
        text-align: initial;
    }

    .home_footer {
        grid-column: 1 / 3;
    }

    .about_container {
        grid-template-columns: repeat(2, 350px);
        align-items: center;
    }

    .about_data {
        order: 1;
    }

    .about_data,
    .about_data .section_title {
        text-align: initial;
    }

    .footer_container {
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }

    .footer_img-1 {
        top: 6rem;
    }

    .footer_img-2 {
        top: 8rem;
    }
}

@media screen and (min-width: 1150px){
    .container {
        margin-inline: auto;
    }

    .section {
        padding-block: 7rem 2rem;
    }

    .nav {
        height: calc(var(--header-height) + 2rem);
    }

    .nav_toggle,
    .nav_close,
    .nav_img-1,
    .nav_img-2 {
        display: none;
    }

    .nav_menu {
        width: initial;
    }

    .nav_list {
        flex-direction: row;
        column-gap: 4rem;
    }

    .home_container {
        grid-template-columns: 470px 550px;
        column-gap: 3rem;
    }

    .home_title {
        margin-bottom: 2rem;
    }

    .home_cake {
        width: 80px;
        left: 10rem;
    }

    .home_image {
        max-width: initial;
        width: 550px;
    }

    .home_location i {
        font-size: 2rem;
    }

    .home_location span {
        font-size: var(--normal-font-size);
    }

    .home_social {
        column-gap: 1.5rem;
    }

    .about_container {
        grid-template-columns: 450px 430px;
    }

    .about_img {
        width: 450px;
    }

    .about_cake {
        width: 90px;
        bottom: -3rem;
        right: 4rem;
    }

    .footer {
        padding-block: 5rem 3rem;
    }

    .footer_logo,
    .footer_title {
        margin-bottom: 1.5rem;
    }

    .footer_content {
        column-gap: 4.5rem;
    }

    .footer_social {
        column-gap: 1.5rem;
    }

    .footer_img-1 {
        width: 90px;
        right: initial;
        left: 15rem;
    }

    .footer_img-2 {
        width: 90px;
        left: initial;
        right: 7rem;
    }

    .footer_copy {
        margin-top: 8rem;
    }
}