@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;500;600;700;800;900&display=swap');

:root {
    --background-color: #181818;
    --primary-color: rgba(16, 182, 235);
    --secondary-color: rgba(16, 182, 235, 0.08);
    --text-color: #EAEAEA;
}

* {
    list-style: none;
    text-decoration: none;
    font-family: 'Montserrat', 'sans-serif';
    color: var(--text-color)
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
}


/* Desktop NavBar */
.section1 header {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: var(--background-color);
}

.section1 header .desktop-navbar ul{
    position: absolute;
    width: 51%;
    top: 10%;
    left: 45.7%;
    display: flex;
    justify-content: space-between;
}

.section1 header .desktop-navbar ul li > * {
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.section1 header .desktop-navbar ul li > *:hover {
    color: var(--primary-color);
}

.section1 header .desktop-navbar ul li .here {
    color: var(--primary-color);
}

/* Mobile NavBar */
.section1 header .mobile-navbar {
    width: 80vw;
}

.section1 header .mobile-navbar .logo {
    position: relative;
}

.section1 header .mobile-navbar .menu {
    position: absolute;
    z-index: 2;
    cursor: pointer;
}

.section1 header .mobile-navbar ul {
    position: fixed;
    background-color: var(--text-color);
    height: 100vh;
    width: 40vw;
    margin: 0;
    top: 0%;
    right: 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: slide 0.5s ease;
}

@keyframes slide {
    0% {
        right: -60vw;
    }
    100% {
        right: 0%;
    }
}

.section1 header .mobile-navbar ul li {
    padding-top: 20px;
}

.section1 header .mobile-navbar ul li > * {
    font-weight: 700;
    color: var(--background-color);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.section1 header .mobile-navbar ul li > *:hover {
    color: var(--primary-color);
}

.section1 header .mobile-navbar ul li .here {
    color: var(--primary-color);
}
/* Introduction */
.section1 .intro {
    max-width: 1239px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.section1 .intro h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.section1 .intro p {
    max-width: 50vw;
    font-size: 1.2rem;
}

.section1 .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    text-align: center;
}

.section1 .hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.section1 .hero p {
    max-width: 50vw;
    text-align: center;
    font-size: 1.2rem;
}

.section1 .hero .cards {
    display: flex;
    flex-direction: row;
    align-items: space-around;
    justify-content: center;
    margin-top: 80px;
    column-gap: 5vh;
    flex-wrap: wrap;
    row-gap: 5vh;
    padding: 0px;
}

.section1 .hero .cards .card {
    background-color: var(--secondary-color);
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    text-align: left;
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 20px;
}

.section1 .hero .cards .card h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.section1 .hero .cards .card p {
    text-align: center;
}

.section1 .hero .cards .card img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

/* Section 2 */
.section2 {
    margin-top: 80px;
    width: 70vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: var(--secondary-color);
    text-align: center;
    padding-bottom: 50px;
}

.section2 h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.section2 .cards {
    width: 50%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    column-gap: 5%;
    row-gap: 50px;
    margin-bottom: 30px;
}

.section2 .cards .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding-left: 40px;
    padding-right: 40px;
    width: clamp(20%, 60%, 60%);
}

.section2 button {
    background-color:var(--primary-color);
    width: 110%;
    height: 50px;
    border: none;
    border-radius: 10px;
    color: var(--background-color);
    font-weight: 700;
    align-self: center;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    line-height: 0px;
}

.section2 button:hover {
    background-color: var(--text-color);
}

/* Media Queries */



/* 1240 px reduce navbar and font-size */
@media screen and (max-width: 1240px) {
    .section1 header .desktop-navbar ul li > * {
        font-size: 0.9rem;
    }

    .section1 header .desktop-navbar .logo {
        width: 800px;
    }

    .section1 header .desktop-navbar ul{
        top: 0;
        left: 44%;
    }

    .section1 header {
        max-width: 800px;
    }
    .section1 .intro h1 {
        font-size: 2.5rem;
    }

    .section1 .intro p {
        font-size: 1rem;
    }

    .section1 .hero h1 {
        font-size: 2.5rem;
    }

    .section1 .hero p {
        font-size: 1rem;
    }

    .section2 h1 {
        font-size: 2.5rem;
    }

    .section2 p {
        font-size: 1rem;
    }
}

/* 800px disable desktop-navbar and enable mobile-navbar */
@media screen and (max-width: 800px) {
    .section1 header .desktop-navbar {
        display: none;
    }


    .section1 header .mobile-navbar {
        display: flex;
        padding-left: 10px;
    }

    .section1 header .mobile-navbar .menu {
        right: 2%;
        top: 28%;
    }

    .section1 .intro h1 {
        font-size: 2.5rem;
    }
    .section1 .intro p {
        font-size: 1rem;
        max-width: 80vw;
    }

    .section1 .hero h1 {
        font-size: 2.5rem;
    }

    .section1 .hero p {
        font-size: 1rem;
        max-width: 80vw;
    }

    .section2 h1 {
        font-size: 2.5rem;
    }

    .section2 {
        background-color: var(--background-color);
    }

    .section2 .cards {
        width: 100vw;
    }
    .section2 .cards .card {
        width: 100%;
        margin-left: 7px;
        margin-right: 7px;
    }

    .section1 .intro{
        margin-top: 20px;
    }
    h1 {
        font-size: 2.4rem;
    }
}

/* min 800px to disable mobile-navbar on desktop/tablet display */
@media screen and (min-width: 800px) {
    .section1 header .mobile-navbar {
        display: none;
    }
}

@media screen and (max-width: 1240px) and (min-width: 800px) {
    .section1 .intro p {
        max-width: 80vw;
    }
    .section1 .hero p {
        max-width: 80vw;
    }

    .section2 {
        background-color: #181818;
    }

    .section2 .cards {
        flex-wrap: nowrap;
        column-gap: 10%;
        width: fit-content;
    }

    .section2 a {
        width: 45%;
    }
    .section1 {
        max-width: 800px;
    }
}

@media screen and (min-width: 1240px) {
    .section2 .cards {
        flex-wrap: nowrap;
        column-gap: 10%;
        width: fit-content;
    }

    .section2 .cards .card {
        width: clamp(300px, 350px, 400px);
    }
}