@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Playfair+Display&display=swap');

:root {
    --montserrat: 'Montserrat', sans-serif;
    --playfair: 'Playfair Display', serif;

    --color-primary: #2ED058;
    --on-color-primary: #fff;
    --color-secondary: #fff;
    --on-color-secondary: #212529;
    --dark-color: #212529;
    --on-dark-color: #fff;
    --accent-color: #F4D413;

    --default-transition: all 300ms ease;
}

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

body {
    font-family: var(--montserrat);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--playfair);
}

a {
    display: block;
    transition: var(--default-transition);
    color: var(--on-color-primary);
}

a:hover {
    opacity: .8;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.5rem;
}

p {
    font-size: 1rem;
    font-family: var(--montserrat);
    margin: 15px 0;
}

h4,
.subtitle {
    font-size: 1.75rem;
    font-family: var(--montserrat);
}

h5,
.subtitle-bold {
    font-size: 1.125rem;
    font-family: var(--montserrat);
    font-weight: 700;
}

img {
    width: 100%;
    display: block;
}

.site-width {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
}

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

section {
    height: 100vh;
    width: 100%;
}

.content-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.content-section:not(:last-child) {
    margin-bottom: 60px;
}

.app-image {
    width: 170px; 
    height: 170px; 
    border-radius: 22%; 
    overflow: hidden; 
    display: inline-block; 
    vertical-align: middle;
}

@media screen and (max-width: 769px) {
    .site-width {
        padding-left: 20px;
        padding-right: 20px;
    } 

    section {
        height: fit-content;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 2rem;
    }

    .content-section {
        grid-template-columns: 1fr;
    }

    .content-section:not(:last-child) {
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 769px) {
    .content-section:nth-child(odd) {
        direction: rtl;
    }
}

/* Header */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header-wrapper .logo-wrapper img {
    width: 50px;
}

.header-wrapper nav .navigation-wrapper {
    display: flex;
    list-style: none;
    justify-content: space-between;
    align-items: center;
}

.header-wrapper nav .navigation-wrapper .navigation-link {
    padding: 0 15px;
}

.header-wrapper nav .navigation-wrapper .navigation-link a {
    color: var(--on-color-secondary);
    text-decoration: none;
}

/* HOME */

#home {
    overflow: hidden;
    position: relative;
}

#home .home-wrapper {
    height: 100%;
}

#home .home-wrapper .content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    color: var(--on-color-secondary);
    margin-top: 40px;
}

#home .home-wrapper .content .button {
    width: fit-content;
    border: 1px solid var(--color-primary);
    padding: 1rem 1.25rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    color: var(--color-primary);
}

@media screen and (min-width:769px) {

    #home {
        height: calc(100vh - 90px);
    }

    #home::after {
        content: '';
        display: block;
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    }

    #home .home-wrapper .hero-banner {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #home .home-wrapper .content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--on-color-primary);
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    #home .home-wrapper .content .button {
        color: var(--on-color-primary);
    }
}

/* ABOUT */

#about {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#about .about-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#about .about-wrapper h1 {
    margin-bottom: 40px;
}

#about .about-wrapper h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    margin-top: 10px;
    background-color: var(--color-primary);
}

#about .about-wrapper p {
    text-align: center;
}

#about .about-wrapper .download-now {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 769px) {
    #about {
        padding-bottom: 120px;
        padding-top: 120px;
    }

    #about .about-wrapper p {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    #about .about-wrapper .download-now {
        margin-top: 120px;
    }
}

/* CONTACT */

#contact {
    background-color: var(--color-primary);
    color: var(--on-color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact .contact-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#contact .contact-wrapper div {
    flex: 1;
}

#contact .contact-wrapper .left-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact .contact-wrapper .left-col h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    margin-top: 10px;
    background-color: var(--accent-color);
}

#contact .contact-wrapper .left-col .contact-details {
    margin-bottom: 20px;
}

#contact .contact-wrapper .right-col img {
    margin-bottom: 20px;
}


@media screen and (min-width: 769px) { 
    #contact .contact-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    #contact .contact-wrapper .left-col .contact-details a {
        font-size: 1.5rem;
        text-decoration: none;
    }

    #contact .contact-wrapper .left-col .contact-details a:hover {
        color: var(--accent-color);
    }
}

/* FOOTER */
.footer-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    background-color: var(--dark-color);
    color: var(--on-dark-color);
    width: 100%;
}

.footer-wrapper p {
    font-size: 10px;
    font-weight: 100;
}

.footer-wrapper nav ul {
    list-style: none;
}

.footer-wrapper a {
    font-size: 12px;
    font-size: 100;
}


@media screen and (min-width: 769px) { 
    .footer-wrapper {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 40px;
        padding-right: 40px;
        flex-direction: row;
    }
}


/* Back to top */

#back-to-top {
    width: 50px;
    height: 50px;
    background-color: var(--dark-color);
    content: '⬆️';
    color: var(--accent-color);
    position: fixed;
    right: 30px;
    bottom: 90px;
    opacity: .3;
    transition: var(--default-transition);
    cursor: pointer;
    border: 1px solid var(--color-primary);
}

#back-to-top:hover {
    opacity: 1;
}

#back-to-top svg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 100%;
    font-size: 16px;
    margin: auto;
}

@media screen and (max-width: 769px) {
    #back-to-top {
        display: none;
    }
}
