@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
    --Almost-White: hsl(0, 0%, 98%);
    --Medium-Gray: hsl(0, 0%, 41%);
    --Almost-Black: hsl(0, 0%, 8%);
}

body {
    min-height: 100vh;
    font-family: 'Epilogue', serif;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 2rem 4rem;
    min-width: 1290px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav_mobile {
    display: none;
}

.nav_left {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 3rem;
}

.nav_left ul {
    display: flex;
    gap: 3rem;
    justify-content: space-around;
    list-style: none;
}

.nav_left li {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav_desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bi {
    font-size: .6rem;
}

.btn_nav {
    color: var(--Medium-Gray);
    font-weight: 700;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn_nav:hover {
    color: var(--Almost-Black);
}

.menu ul li {
    display: flex;
    flex-direction: column;
}

.inner_li {
    display: flex;
    gap: 1rem;
}

.drop-wrapper {
    position: relative;
}

.dropdown_item {
    position: absolute;
    top: 100%;
    left: 0;
}

.dropdown_item ul {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 1rem;
    gap: 1rem;
    background: var(--Almost-White);
}

.dropdown_item ul li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap:1rem;
    margin-left: 1rem;
    cursor: pointer;
}

.dropdown_item ul li:hover {
    color: var(--Medium-Gray);
}
.nav_login ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav_login ul li:nth-child(2) {
    padding: 1rem 2rem;
    border: solid 1px var(--Almost-Black);
    border-radius: 1rem;
}

.hide {
    display: none;
}

section {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem;
    height: 80vh;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;
}

.content h1 {
    font-size: 4rem;
    width: 70%;
}

.content span {
    font-size: 1rem;
    width: 400px;
}

.content button {
    width: 120px;
    background: var(--Almost-Black);
    color: var(--Almost-White);
    border: solid 1px var(--Almost-Black);
    padding: .7rem;
    border-radius: .7rem;
    cursor: pointer;
}

.content button:hover {
    background-color: var(--Almost-White);
    color: var(--Almost-Black);
    border: solid 1px var(--Almost-Black);
}

.content_logo {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 2rem;
}

.content_logo img {
    height: 70%;
}

.content_img {
    display: flex;
    align-items: center;
    width: 30%;
    height: 100%;
}

.content_img img {
    width: 100%;
}

.content_img_mobile {
    display: none;
}


@media (max-width:820px) {

    body {
        overflow: hidden;
    }

    .container {
        min-width: 340px;
        padding: 2rem 0;
    }

    nav {
        justify-content: space-between;
    }

    .nav_desktop {
        display: none;
    }

    .nav_left {
        justify-content: space-between;
        margin: 0 1rem ;
    }

    .nav_mobile {
        display: flex;
        flex-direction: column;
    }

    .nav_mobile ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
    }

    .nav_mobile li {
        align-items: flex-start;
    }

    .nav_mobile li button {
        font-size: 1rem;
    }

    .bi-list {
        font-size: 2rem;
    }

    .nav_mobile_container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        visibility: hidden;
        opacity: 0;
        height: 100vh;
        width: 70%;
        position: fixed;
        background: var(--Almost-White);
        top: 0;
        right: 0;
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav_mobile_container.show {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }

    .bi-x-lg {
        align-self: flex-end;
        font-size: 1.5rem;
        color: var(--Medium-Gray);
    }

    .dropdown_item {
        position: static;
    }

    .dropdown_item ul {
        position: static;
        margin-top: 1rem;
    }

    .nav_login ul {
        align-items: center;
        margin-top: 1rem;
    }

    section {
        flex-direction: column-reverse;
        align-items: center;
        height: 100vh;
        width: 100vw;
        gap: 0;
        padding: 0;
    }

    .content {
        flex-wrap: wrap;
        align-items: center;
        text-align: center;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .content h1  {
        width: 100%;
        font-size: 2.5rem;
    }

    .content span {
        width: 100%;
    }

    .content_img {
        width: 100%;
        height: auto;
    }

    .content_img_desk {
        display: none;
    }

    .content_img_mobile {
        display: block;
    }

    .content_logo {
        justify-content: center;
    }

    .content_logo img {
        width: 18%;
        object-fit: contain;
    }
}