/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb54C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb94C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb54C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb94C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb54C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb94C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {

    /* Header height */
    --header-height: 3.5rem;

    /* Main color */
    --first-color: #CBFBF2FF;

    /* Text color */
    --text-color: #161513FF;

    /* Fonts */
    --body-font: "Space Grotesk", sans-serif;
    --biggest-font-size: 2.375rem;
    --normal-font-size: 0.938rem;
    --smaller-font-size: 0.75rem;
}

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

html {
    /*height: calc(100vh - env(safe-area-inset-bottom));*/
    /*padding-bottom: env(safe-area-inset-bottom);*/
    /*overflow: hidden;*/
}

body {
    font-family: var(--body-font), sans-serif;
    font-size: var(--normal-font-size);
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--first-color);
    display: flex;
    flex-direction: column;
    min-width: 100vw;
    min-height: calc(100vh - env(safe-area-inset-bottom));
}


html {
    height: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1024px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* HEADER & NAV */
.header {
    position: fixed;
    width: 100%;
    background-color: transparent;
    top: 0;
    left: 0;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--text-color);
    display: inline-flex;
    font-weight: 700;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.25); /* Increases the size by 20% */
}

/* HOME */
.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    padding-top: 4rem;
    text-align: center;
    justify-content: center;
}

.home-container {
    display: flex;
    flex-wrap: wrap; /* Allows children to wrap to the next row on smaller screens */
    align-items: center; /* Align items vertically in the center */
    justify-content: space-between; /* Distribute space between children */
    gap: 2rem; /* Space between items */
    max-width: 100%; /* Prevent the container from exceeding the screen width */
    padding: 0 1rem; /* Add some padding to prevent items from hitting the edges */
    box-sizing: border-box; /* Make sure padding is included within the width */
}

.home-container > * {
    flex: 1 1 calc(50% - 2rem); /* Each item takes up 50% of the width minus the gap */
    max-width: calc(50% - 2rem); /* Prevent children from growing too large */
}

.home-data {
    text-align: center;
}

.home-subtitle {
    display: block;
}

.home-title {
    font-size: var(--biggest-font-size);
    margin: 0.7rem 0;
}

.home-button {
    margin-top: 2rem;
    display: inline-block;
    background-color: var(--text-color);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 3rem; /* Matches the button's border radius */
    transition: left 0.3s ease;
    z-index: 1;
}

.home-button span {
    position: relative;
    z-index: 2; /* Keep the text above the ::before element */
}

.home-button:hover::before {
    left: 0;
}

.home-button:hover {
    box-shadow: 0 4px 12px hsla(28, 69%, 8%, 0.2), 0 0 20px rgba(255, 255, 255, 0.6);
    color: #000000;
}

.home-img img {
    width: 200px;
    animation: floaty 1.8s infinite alternate;
}

.home-img {
    position: relative; /* Required to position the shadow properly */
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-shadow {
    width: 130px;
    height: 24px;
    background-color: hsla(38, 21%, 19%, 0.16);
    margin: 0 auto;
    border-radius: 50%;
    filter: blur(7px);
    animation: shadow 1.8s infinite alternate;
    position: absolute;
    bottom: -10px; /* Adjust the shadow positioning */
}


footer {
    display: flex;
    font-size: var(--smaller-font-size);
    justify-content: space-around; /* Horizontally space footer items */
    padding: 1rem; /* Add padding to the footer */
    color: var(--text-color); /* Text color */
}

footer a {
    color: var(--text-color);
    text-decoration: underline;
    transition: all 0.3s ease-in-out;
}

footer a:hover {
    text-decoration-thickness: 2px;
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(15px);
    }
}

@keyframes shadow {
    0% {
        transform: scale(1, 1);
    }

    100% {
        transform: scale(0.85, 0.85);
    }
}

/* BREAKPOINTS */

/* For small devices */
@media screen and (max-width: 424px) {
    footer {
        display: none;
    }
}

@media (max-width: 563px) { /* For mobile screens */
    .home-container > * {
        flex: 1 1 100%; /* Items stack vertically */
        max-width: 100%; /* Full width */
    }
}

@media screen and (min-width: 564px) {
    .home {
        justify-content: center;
    }

}

@media screen and (max-width: 767px) {
    .nav-menu {
        position: fixed;
        background-color: var(--first-color);
        left: 0;
        top: -100%;
        width: 100%;
        padding: 2.5rem 0 2rem;
        border-radius: 0 0 1.5rem 1.5rem;
        box-shadow: 0 2px 4px hsla(38, 4%, 15%, 0.15);
        transition: 0.4s;
    }
}


/* For medium devices */
@media screen and (min-width: 767px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav-toggle,
    .nav-close {
        display: none;
    }

    .nav-list {
        flex-direction: row;
        column-gap: 3.5rem;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 5rem;
        --normal-font-size: 1rem;
        --smaller-font-size: 0.813rem;
    }

    .home-container {
        display: flex;
        flex-wrap: wrap; /* Allows children to wrap to the next row on smaller screens */
        align-items: center; /* Align items vertically in the center */
        justify-content: center; /* Distribute space between children */
        gap: 2rem; /* Space between items */
        max-width: 100%; /* Prevent the container from exceeding the screen width */
        padding: 0 1rem; /* Add some padding to prevent items from hitting the edges */
        box-sizing: border-box; /* Make sure padding is included within the width */
    }

    .home-container > * {
        max-width: calc(50% - 2rem); /* Prevent children from growing too large */
    }

    .home-data {
        text-align: initial;
    }

    .home-img img {
        width: 400px;
    }

    .home-shadow {
        width: 250px;
        height: 40px;
        bottom: -15px; /* Re-adjust shadow for larger screens */
    }
}

@media screen and (min-width: 1048px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
    .home {
        height: initial;
        row-gap: 4rem;
    }
}

